/drivers/i2c/ |
D | i2c-core-acpi.c | 106 struct i2c_acpi_lookup *lookup = data; in i2c_acpi_fill_info() local 107 struct i2c_board_info *info = lookup->info; in i2c_acpi_fill_info() 114 if (lookup->index != -1 && lookup->n++ != lookup->index) in i2c_acpi_fill_info() 117 status = acpi_get_handle(lookup->device_handle, in i2c_acpi_fill_info() 119 &lookup->adapter_handle); in i2c_acpi_fill_info() 124 lookup->speed = sb->connection_speed; in i2c_acpi_fill_info() 146 struct i2c_acpi_lookup *lookup) in i2c_acpi_do_lookup() argument 148 struct i2c_board_info *info = lookup->info; in i2c_acpi_do_lookup() 162 lookup->device_handle = acpi_device_handle(adev); in i2c_acpi_do_lookup() 167 i2c_acpi_fill_info, lookup); in i2c_acpi_do_lookup() [all …]
|
/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_vcap_debugfs.c | 81 int lookup; in sparx5_vcap_is0_port_keys() local 86 for (lookup = 0; lookup < admin->lookups; ++lookup) { in sparx5_vcap_is0_port_keys() 87 out->prf(out->dst, "\n Lookup %d: ", lookup); in sparx5_vcap_is0_port_keys() 91 ANA_CL_ADV_CL_CFG(port->portno, lookup)); in sparx5_vcap_is0_port_keys() 124 int lookup; in sparx5_vcap_is2_port_keys() local 129 for (lookup = 0; lookup < admin->lookups; ++lookup) { in sparx5_vcap_is2_port_keys() 130 out->prf(out->dst, "\n Lookup %d: ", lookup); in sparx5_vcap_is2_port_keys() 135 if (ANA_ACL_VCAP_S2_CFG_SEC_ENA_GET(value) & BIT(lookup)) in sparx5_vcap_is2_port_keys() 142 ANA_ACL_VCAP_S2_KEY_SEL(port->portno, lookup)); in sparx5_vcap_is2_port_keys() 236 int lookup; in sparx5_vcap_is2_port_stickies() local [all …]
|
D | sparx5_vcap_impl.c | 363 int lookup = 0; in sparx5_vcap_is0_cid_to_lookup() local 366 lookup = 1; in sparx5_vcap_is0_cid_to_lookup() 368 lookup = 2; in sparx5_vcap_is0_cid_to_lookup() 370 lookup = 3; in sparx5_vcap_is0_cid_to_lookup() 372 lookup = 4; in sparx5_vcap_is0_cid_to_lookup() 374 lookup = 5; in sparx5_vcap_is0_cid_to_lookup() 376 return lookup; in sparx5_vcap_is0_cid_to_lookup() 382 int lookup = 0; in sparx5_vcap_is2_cid_to_lookup() local 385 lookup = 1; in sparx5_vcap_is2_cid_to_lookup() 387 lookup = 2; in sparx5_vcap_is2_cid_to_lookup() [all …]
|
/drivers/gpio/ |
D | gpiolib-acpi.c | 773 struct acpi_gpio_lookup *lookup = data; in acpi_populate_gpio_lookup() local 778 if (!lookup->desc) { in acpi_populate_gpio_lookup() 784 if (lookup->info.quirks & ACPI_GPIO_QUIRK_ONLY_GPIOIO && gpioint) in acpi_populate_gpio_lookup() 785 lookup->index++; in acpi_populate_gpio_lookup() 787 if (lookup->n++ != lookup->index) in acpi_populate_gpio_lookup() 790 pin_index = lookup->pin_index; in acpi_populate_gpio_lookup() 794 if (lookup->info.quirks & ACPI_GPIO_QUIRK_ABSOLUTE_NUMBER) in acpi_populate_gpio_lookup() 799 lookup->desc = desc; in acpi_populate_gpio_lookup() 800 lookup->info.pin_config = agpio->pin_config; in acpi_populate_gpio_lookup() 801 lookup->info.debounce = agpio->debounce_timeout; in acpi_populate_gpio_lookup() [all …]
|
/drivers/mfd/ |
D | arizona-spi.c | 46 static void arizona_spi_acpi_remove_lookup(void *lookup) in arizona_spi_acpi_remove_lookup() argument 48 gpiod_remove_lookup_table(lookup); in arizona_spi_acpi_remove_lookup() 54 struct gpiod_lookup_table *lookup; in arizona_spi_acpi_windows_probe() local 62 lookup = devm_kzalloc(arizona->dev, in arizona_spi_acpi_windows_probe() 63 struct_size(lookup, table, ARRAY_SIZE(arizona_soc_gpios) + 1), in arizona_spi_acpi_windows_probe() 65 if (!lookup) in arizona_spi_acpi_windows_probe() 68 lookup->dev_id = dev_name(arizona->dev); in arizona_spi_acpi_windows_probe() 69 memcpy(lookup->table, arizona_soc_gpios, sizeof(arizona_soc_gpios)); in arizona_spi_acpi_windows_probe() 71 gpiod_add_lookup_table(lookup); in arizona_spi_acpi_windows_probe() 72 ret = devm_add_action_or_reset(arizona->dev, arizona_spi_acpi_remove_lookup, lookup); in arizona_spi_acpi_windows_probe()
|
/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_vcap_impl.c | 101 int lookup = 0; in lan966x_vcap_is1_cid_to_lookup() local 105 lookup = 1; in lan966x_vcap_is1_cid_to_lookup() 108 lookup = 2; in lan966x_vcap_is1_cid_to_lookup() 110 return lookup; in lan966x_vcap_is1_cid_to_lookup() 124 lan966x_vcap_is1_get_port_keysets(struct net_device *ndev, int lookup, in lan966x_vcap_is1_get_port_keysets() argument 132 val = lan_rd(lan966x, ANA_VCAP_S1_CFG(port->chip_port, lookup)); in lan966x_vcap_is1_get_port_keysets() 184 lan966x_vcap_is2_get_port_keysets(struct net_device *dev, int lookup, in lan966x_vcap_is2_get_port_keysets() argument 200 if (ANA_VCAP_S2_CFG_SNAP_DIS_GET(val) & (BIT(0) << lookup)) in lan966x_vcap_is2_get_port_keysets() 209 if (ANA_VCAP_S2_CFG_OAM_DIS_GET(val) & (BIT(0) << lookup)) in lan966x_vcap_is2_get_port_keysets() 218 if (ANA_VCAP_S2_CFG_ARP_DIS_GET(val) & (BIT(0) << lookup)) in lan966x_vcap_is2_get_port_keysets() [all …]
|
/drivers/tty/serdev/ |
D | core.c | 605 struct acpi_serdev_lookup *lookup = data; in acpi_serdev_parse_resource() local 612 if (lookup->index != -1 && lookup->n++ != lookup->index) in acpi_serdev_parse_resource() 615 status = acpi_get_handle(lookup->device_handle, in acpi_serdev_parse_resource() 617 &lookup->controller_handle); in acpi_serdev_parse_resource() 630 struct acpi_serdev_lookup *lookup) in acpi_serdev_do_lookup() argument 635 lookup->device_handle = acpi_device_handle(adev); in acpi_serdev_do_lookup() 636 lookup->controller_handle = NULL; in acpi_serdev_do_lookup() 637 lookup->n = 0; in acpi_serdev_do_lookup() 641 acpi_serdev_parse_resource, lookup); in acpi_serdev_do_lookup() 653 struct acpi_serdev_lookup lookup; in acpi_serdev_check_resources() local [all …]
|
/drivers/gpu/drm/ |
D | drm_privacy_screen_x86.c | 16 struct drm_privacy_screen_lookup lookup; member 63 .lookup = { 73 .lookup = { 92 arch_init_data[i].lookup.provider); in drm_privacy_screen_lookup_init() 95 arch_lookup = arch_init_data[i].lookup; in drm_privacy_screen_lookup_init()
|
D | drm_privacy_screen.c | 55 void drm_privacy_screen_lookup_add(struct drm_privacy_screen_lookup *lookup) in drm_privacy_screen_lookup_add() argument 58 list_add(&lookup->list, &drm_privacy_screen_lookup_list); in drm_privacy_screen_lookup_add() 71 void drm_privacy_screen_lookup_remove(struct drm_privacy_screen_lookup *lookup) in drm_privacy_screen_lookup_remove() argument 74 list_del(&lookup->list); in drm_privacy_screen_lookup_remove()
|
/drivers/net/ethernet/mscc/ |
D | ocelot_flower.c | 20 #define VCAP_IS1_CHAIN(lookup) \ argument 21 (1 * VCAP_BLOCK + (lookup) * VCAP_LOOKUP) 22 #define VCAP_IS2_CHAIN(lookup, pag) \ argument 23 (2 * VCAP_BLOCK + (lookup) * VCAP_LOOKUP + (pag)) 30 int lookup, pag; in ocelot_chain_to_block() local 44 for (lookup = 0; lookup < VCAP_IS1_NUM_LOOKUPS; lookup++) in ocelot_chain_to_block() 45 if (chain == VCAP_IS1_CHAIN(lookup)) in ocelot_chain_to_block() 48 for (lookup = 0; lookup < VCAP_IS2_NUM_LOOKUPS; lookup++) in ocelot_chain_to_block() 50 if (chain == VCAP_IS2_CHAIN(lookup, pag)) in ocelot_chain_to_block() 78 int lookup; in ocelot_chain_to_pag() local [all …]
|
D | ocelot_vcap.c | 373 (filter->lookup == 0) ? OCELOT_VCAP_BIT_1 : in is2_entry_set() 692 vcap_key_set(vcap, &data, VCAP_IS1_HK_LOOKUP, filter->lookup, 0x3); in is1_entry_set() 1079 int lookup, bool on) in ocelot_match_all_as_mac_etype() argument 1084 val = ANA_PORT_VCAP_S2_CFG_S2_SNAP_DIS(BIT(lookup)) | in ocelot_match_all_as_mac_etype() 1085 ANA_PORT_VCAP_S2_CFG_S2_ARP_DIS(BIT(lookup)) | in ocelot_match_all_as_mac_etype() 1086 ANA_PORT_VCAP_S2_CFG_S2_IP_TCPUDP_DIS(BIT(lookup)) | in ocelot_match_all_as_mac_etype() 1087 ANA_PORT_VCAP_S2_CFG_S2_IP_OTHER_DIS(BIT(lookup)) | in ocelot_match_all_as_mac_etype() 1088 ANA_PORT_VCAP_S2_CFG_S2_OAM_DIS(BIT(lookup)); in ocelot_match_all_as_mac_etype() 1091 ANA_PORT_VCAP_S2_CFG_S2_SNAP_DIS(BIT(lookup)) | in ocelot_match_all_as_mac_etype() 1092 ANA_PORT_VCAP_S2_CFG_S2_ARP_DIS(BIT(lookup)) | in ocelot_match_all_as_mac_etype() [all …]
|
/drivers/platform/x86/intel/int3472/ |
D | led.c | 55 int3472->pled.lookup.provider = int3472->pled.name; in skl_int3472_register_pled() 56 int3472->pled.lookup.dev_id = int3472->sensor_name; in skl_int3472_register_pled() 57 int3472->pled.lookup.con_id = "privacy-led"; in skl_int3472_register_pled() 58 led_add_lookup(&int3472->pled.lookup); in skl_int3472_register_pled() 72 led_remove_lookup(&int3472->pled.lookup); in skl_int3472_unregister_pled()
|
/drivers/clk/x86/ |
D | clk-pmc-atom.c | 33 struct clk_lookup *lookup; member 39 struct clk_lookup *lookup; member 197 pclk->lookup = clkdev_hw_create(&pclk->hw, init.name, NULL); in plt_clk_register() 198 if (!pclk->lookup) { in plt_clk_register() 210 clkdev_drop(pclk->lookup); in plt_clk_unregister() 229 pclk->lookup = clkdev_hw_create(pclk->clk, name, NULL); in plt_clk_register_fixed_rate() 230 if (!pclk->lookup) { in plt_clk_register_fixed_rate() 240 clkdev_drop(pclk->lookup); in plt_clk_unregister_fixed_rate()
|
/drivers/media/dvb-frontends/ |
D | stv0900_core.c | 591 const struct stv0900_table *lookup, in stv0900_get_rf_level() argument 602 if ((lookup == NULL) || (lookup->size <= 0)) in stv0900_get_rf_level() 609 imax = lookup->size - 1; in stv0900_get_rf_level() 610 if (INRANGE(lookup->table[imin].regval, agc_gain, in stv0900_get_rf_level() 611 lookup->table[imax].regval)) { in stv0900_get_rf_level() 615 if (INRANGE(lookup->table[imin].regval, in stv0900_get_rf_level() 617 lookup->table[i].regval)) in stv0900_get_rf_level() 623 rf_lvl = (s32)agc_gain - lookup->table[imin].regval; in stv0900_get_rf_level() 624 rf_lvl *= (lookup->table[imax].realval - in stv0900_get_rf_level() 625 lookup->table[imin].realval); in stv0900_get_rf_level() [all …]
|
/drivers/of/ |
D | platform.c | 322 static const struct of_dev_auxdata *of_dev_lookup(const struct of_dev_auxdata *lookup, in of_dev_lookup() argument 329 if (!lookup) in of_dev_lookup() 332 auxdata = lookup; in of_dev_lookup() 348 auxdata = lookup; in of_dev_lookup() 374 const struct of_dev_auxdata *lookup, in of_platform_bus_create() argument 403 auxdata = of_dev_lookup(lookup, bus); in of_platform_bus_create() 424 rc = of_platform_bus_create(child, matches, lookup, &dev->dev, strict); in of_platform_bus_create() 496 const struct of_dev_auxdata *lookup, in of_platform_populate() argument 511 rc = of_platform_bus_create(child, matches, lookup, parent, true); in of_platform_populate() 527 const struct of_dev_auxdata *lookup, in of_platform_default_populate() argument [all …]
|
/drivers/clk/ |
D | clk-s2mps11.c | 27 struct clk_lookup *lookup; member 180 s2mps11_clks[i].lookup = clkdev_hw_create(&s2mps11_clks[i].hw, in s2mps11_clk_probe() 182 if (!s2mps11_clks[i].lookup) { in s2mps11_clk_probe() 200 clkdev_drop(s2mps11_clks[i].lookup); in s2mps11_clk_probe() 216 if (!s2mps11_clks[i].lookup) in s2mps11_clk_remove() 218 clkdev_drop(s2mps11_clks[i].lookup); in s2mps11_clk_remove()
|
/drivers/reset/ |
D | core.c | 172 void reset_controller_add_lookup(struct reset_control_lookup *lookup, in reset_controller_add_lookup() argument 180 entry = &lookup[i]; in reset_controller_add_lookup() 903 const struct reset_control_lookup *lookup; in __reset_control_get_from_lookup() local 910 list_for_each_entry(lookup, &reset_lookup_list, list) { in __reset_control_get_from_lookup() 911 if (strcmp(lookup->dev_id, dev_id)) in __reset_control_get_from_lookup() 914 if ((!con_id && !lookup->con_id) || in __reset_control_get_from_lookup() 915 ((con_id && lookup->con_id) && in __reset_control_get_from_lookup() 916 !strcmp(con_id, lookup->con_id))) { in __reset_control_get_from_lookup() 918 rcdev = __reset_controller_by_name(lookup->provider); in __reset_control_get_from_lookup() 927 lookup->index, in __reset_control_get_from_lookup() [all …]
|
/drivers/scsi/elx/libefc/ |
D | efc_nport.c | 96 xa_init(&nport->lookup); in efc_nport_alloc() 152 xa_destroy(&nport->lookup); in efc_nport_free() 153 xa_erase(&domain->lookup, nport->fc_id); in efc_nport_free() 169 nport = xa_load(&domain->lookup, d_id); in efc_nport_find() 185 rc = xa_err(xa_store(&nport->domain->lookup, fc_id, nport, GFP_ATOMIC)); in efc_nport_attach() 195 xa_for_each(&nport->lookup, index, node) { in efc_nport_attach() 219 xa_for_each(&nport->lookup, index, node) { in efc_nport_shutdown() 294 if (xa_empty(&nport->lookup)) { in __efc_nport_common() 296 xa_erase(&domain->lookup, nport->fc_id); in __efc_nport_common() 511 xa_for_each(&nport->lookup, index, node) in __efc_nport_attached() [all …]
|
/drivers/thunderbolt/ |
D | switch.c | 3457 const struct tb_sw_lookup *lookup = data; in tb_switch_match() local 3461 if (sw->tb != lookup->tb) in tb_switch_match() 3464 if (lookup->uuid) in tb_switch_match() 3465 return !memcmp(sw->uuid, lookup->uuid, sizeof(*lookup->uuid)); in tb_switch_match() 3467 if (lookup->route) { in tb_switch_match() 3468 return sw->config.route_lo == lower_32_bits(lookup->route) && in tb_switch_match() 3469 sw->config.route_hi == upper_32_bits(lookup->route); in tb_switch_match() 3473 if (!lookup->depth) in tb_switch_match() 3476 return sw->link == lookup->link && sw->depth == lookup->depth; in tb_switch_match() 3490 struct tb_sw_lookup lookup; in tb_switch_find_by_link_depth() local [all …]
|
D | xdomain.c | 2241 const struct tb_xdomain_lookup *lookup) in switch_find_xdomain() argument 2251 if (lookup->uuid) { in switch_find_xdomain() 2253 uuid_equal(xd->remote_uuid, lookup->uuid)) in switch_find_xdomain() 2256 if (lookup->link && lookup->link == xd->link && in switch_find_xdomain() 2257 lookup->depth == xd->depth) in switch_find_xdomain() 2259 if (lookup->route && lookup->route == xd->route) in switch_find_xdomain() 2263 xd = switch_find_xdomain(port->remote->sw, lookup); in switch_find_xdomain() 2289 struct tb_xdomain_lookup lookup; in tb_xdomain_find_by_uuid() local 2292 memset(&lookup, 0, sizeof(lookup)); in tb_xdomain_find_by_uuid() 2293 lookup.uuid = uuid; in tb_xdomain_find_by_uuid() [all …]
|
D | retimer.c | 452 const struct tb_retimer_lookup *lookup = data; in retimer_match() local 455 return rt && rt->port == lookup->port && rt->index == lookup->index; in retimer_match() 460 struct tb_retimer_lookup lookup = { .port = port, .index = index }; in tb_port_find_retimer() local 463 dev = device_find_child(&port->usb4->dev, &lookup, retimer_match); in tb_port_find_retimer()
|
/drivers/spi/ |
D | spi.c | 2510 struct acpi_spi_lookup *lookup) in acpi_spi_parse_apple_properties() argument 2519 lookup->max_speed_hz = NSEC_PER_SEC / *(u32 *)obj->buffer.pointer; in acpi_spi_parse_apple_properties() 2523 lookup->bits_per_word = *(u64 *)obj->buffer.pointer; in acpi_spi_parse_apple_properties() 2527 lookup->mode |= SPI_LSB_FIRST; in acpi_spi_parse_apple_properties() 2531 lookup->mode |= SPI_CPOL; in acpi_spi_parse_apple_properties() 2535 lookup->mode |= SPI_CPHA; in acpi_spi_parse_apple_properties() 2542 struct acpi_spi_lookup *lookup = data; in acpi_spi_add_resource() local 2543 struct spi_controller *ctlr = lookup->ctlr; in acpi_spi_add_resource() 2553 if (lookup->index != -1 && lookup->n++ != lookup->index) in acpi_spi_add_resource() 2577 lookup->ctlr = ctlr; in acpi_spi_add_resource() [all …]
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_acl.c | 77 u8 lookup; member 747 static int __prestera_acl_vtcam_id_try_fit(struct prestera_acl *acl, u8 lookup, in __prestera_acl_vtcam_id_try_fit() argument 754 if (lookup != vtcam->lookup) in __prestera_acl_vtcam_id_try_fit() 790 int prestera_acl_vtcam_id_get(struct prestera_acl *acl, u8 lookup, u8 dir, in prestera_acl_vtcam_id_get() argument 802 if (lookup != vtcam->lookup || in prestera_acl_vtcam_id_get() 823 err = prestera_hw_vtcam_create(acl->sw, lookup, keymask, &new_vtcam_id, in prestera_acl_vtcam_id_get() 829 if (__prestera_acl_vtcam_id_try_fit(acl, lookup, in prestera_acl_vtcam_id_get() 839 vtcam->lookup = lookup; in prestera_acl_vtcam_id_get()
|
/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_hwinfo.c | 255 const char *nfp_hwinfo_lookup(struct nfp_hwinfo *hwinfo, const char *lookup) in nfp_hwinfo_lookup() argument 259 if (!hwinfo || !lookup) in nfp_hwinfo_lookup() 269 if (strcmp(key, lookup) == 0) in nfp_hwinfo_lookup()
|
/drivers/net/wireguard/ |
D | allowedips.c | 127 static struct wg_peer *lookup(struct allowedips_node __rcu *root, u8 bits, in lookup() function 360 return lookup(table->root4, 32, &ip_hdr(skb)->daddr); in wg_allowedips_lookup_dst() 362 return lookup(table->root6, 128, &ipv6_hdr(skb)->daddr); in wg_allowedips_lookup_dst() 371 return lookup(table->root4, 32, &ip_hdr(skb)->saddr); in wg_allowedips_lookup_src() 373 return lookup(table->root6, 128, &ipv6_hdr(skb)->saddr); in wg_allowedips_lookup_src()
|