| /drivers/net/ |
| A D | nsos_netdb.c | 40 static const struct nsos_eai_map map[] = { variable 55 for (int i = 0; i < ARRAY_SIZE(map); i++) { in eai_to_nsos_mid() 56 if (map[i].err == err) { in eai_to_nsos_mid() 57 return map[i].mid_err; in eai_to_nsos_mid() 66 for (int i = 0; i < ARRAY_SIZE(map); i++) { in eai_from_nsos_mid() 67 if (map[i].mid_err == err) { in eai_from_nsos_mid() 68 return map[i].err; in eai_from_nsos_mid()
|
| /drivers/gpio/ |
| A D | gpio_cc13xx_cc26xx.c | 267 static int gpio_cc13xx_cc26xx_port_get_direction(const struct device *port, gpio_port_pins_t map, in gpio_cc13xx_cc26xx_port_get_direction() argument 276 map &= cfg->port_pin_mask; in gpio_cc13xx_cc26xx_port_get_direction() 279 for (pin = find_lsb_set(map) - 1; map; in gpio_cc13xx_cc26xx_port_get_direction() 280 map &= ~BIT(pin), pin = find_lsb_set(map) - 1) { in gpio_cc13xx_cc26xx_port_get_direction() 288 for (pin = find_lsb_set(map) - 1; map; in gpio_cc13xx_cc26xx_port_get_direction() 289 map &= ~BIT(pin), pin = find_lsb_set(map) - 1) { in gpio_cc13xx_cc26xx_port_get_direction()
|
| A D | gpio_nxp_s32.c | 49 struct gpio_nxp_s32_irq_map *map; member 203 if (irq_cfg->map[i].pin == pin) { in nxp_s32_gpio_pin_to_line() 204 return irq_cfg->map[i].line; in nxp_s32_gpio_pin_to_line() 430 gpio_port_pins_t map, in nxp_s32_gpio_port_get_direction() argument 439 map &= config->common.port_pin_mask; in nxp_s32_gpio_port_get_direction() 442 while (map) { in nxp_s32_gpio_port_get_direction() 443 pin = find_lsb_set(map) - 1; in nxp_s32_gpio_port_get_direction() 445 map &= ~BIT(pin); in nxp_s32_gpio_port_get_direction() 452 while (map) { in nxp_s32_gpio_port_get_direction() 453 pin = find_lsb_set(map) - 1; in nxp_s32_gpio_port_get_direction() [all …]
|
| A D | gpio_emul.c | 774 static int gpio_emul_port_get_direction(const struct device *port, gpio_port_pins_t map, argument 783 map &= config->common.port_pin_mask; 786 for (i = find_lsb_set(map) - 1; map; 787 map &= ~BIT(i), i = find_lsb_set(map) - 1) { 795 for (i = find_lsb_set(map) - 1; map; 796 map &= ~BIT(i), i = find_lsb_set(map) - 1) {
|
| A D | gpio_handlers.c | 101 static inline int z_vrfy_gpio_port_get_direction(const struct device *dev, gpio_port_pins_t map, in z_vrfy_gpio_port_get_direction() argument 115 return z_impl_gpio_port_get_direction(dev, map, inputs, outputs); in z_vrfy_gpio_port_get_direction()
|
| A D | gpio_litex.c | 272 static int gpio_litex_port_get_direction(const struct device *dev, gpio_port_pins_t map, in gpio_litex_port_get_direction() argument 277 map &= gpio_config->port_pin_mask; in gpio_litex_port_get_direction() 280 *inputs = map & (!gpio_config->port_is_output); in gpio_litex_port_get_direction() 284 *outputs = map & (gpio_config->port_is_output); in gpio_litex_port_get_direction()
|
| A D | gpio_sifive.c | 290 static int gpio_sifive_port_get_dir(const struct device *dev, gpio_port_pins_t map, in gpio_sifive_port_get_dir() argument 295 map &= cfg->common.port_pin_mask; in gpio_sifive_port_get_dir() 298 *inputs = map & DEV_GPIO(dev)->in_en; in gpio_sifive_port_get_dir() 302 *outputs = map & DEV_GPIO(dev)->out_en; in gpio_sifive_port_get_dir()
|
| A D | gpio_andes_atcgpio100.c | 289 gpio_port_pins_t map, in gpio_atcgpio100_port_get_dir() argument 296 map &= dev_cfg->common.port_pin_mask; in gpio_atcgpio100_port_get_dir() 299 *inputs = map & ~direction; in gpio_atcgpio100_port_get_dir() 303 *outputs = map & direction; in gpio_atcgpio100_port_get_dir()
|
| A D | gpio_mspm0.c | 340 gpio_port_pins_t map, in gpio_mspm0_port_get_direction() argument 346 map &= config->common.port_pin_mask; in gpio_mspm0_port_get_direction() 347 *inputs = map & ~config->base->DOE31_0; in gpio_mspm0_port_get_direction() 348 *outputs = map & config->base->DOE31_0; in gpio_mspm0_port_get_direction()
|
| A D | gpio_nrfx.c | 506 gpio_port_pins_t map, in gpio_nrfx_port_get_direction() argument 513 map &= cfg->common.port_pin_mask; in gpio_nrfx_port_get_direction() 516 *outputs = map & nrf_gpio_port_dir_read(cfg->port); in gpio_nrfx_port_get_direction() 521 while (map) { in gpio_nrfx_port_get_direction() 522 uint32_t pin = NRF_CTZ(map); in gpio_nrfx_port_get_direction() 532 map &= ~BIT(pin); in gpio_nrfx_port_get_direction()
|
| A D | gpio_mcux.c | 444 static int gpio_mcux_port_get_direction(const struct device *dev, gpio_port_pins_t map, in DT_FOREACH_STATUS_OKAY() 450 map &= config->common.port_pin_mask; in DT_FOREACH_STATUS_OKAY() 453 *inputs = map & (~gpio_base->PDDR); in DT_FOREACH_STATUS_OKAY() 457 *outputs = map & gpio_base->PDDR; in DT_FOREACH_STATUS_OKAY()
|
| A D | gpio_rpi_pico.c | 342 static int gpio_rpi_port_get_direction(const struct device *port, gpio_port_pins_t map, in gpio_rpi_port_get_direction() argument 352 map &= ~BIT(pin); in gpio_rpi_port_get_direction() 359 *inputs &= map; in gpio_rpi_port_get_direction() 362 *outputs = sio_hw->gpio_oe & map; in gpio_rpi_port_get_direction()
|
| A D | gpio_mchp_xec_v2.c | 392 static int gpio_xec_get_direction(const struct device *port, gpio_port_pins_t map, in gpio_xec_get_direction() argument 405 if (!map) { in gpio_xec_get_direction() 408 if ((map & BIT(pin)) && (valid_msk & BIT(pin))) { in gpio_xec_get_direction() 420 map &= ~BIT(pin); in gpio_xec_get_direction()
|
| A D | gpio_mchp_mec5.c | 358 static int gpio_mec5_get_direction(const struct device *port, gpio_port_pins_t map, in gpio_mec5_get_direction() argument 380 if (!map) { in gpio_mec5_get_direction() 383 if ((map & BIT(pin_pos)) && (valid_msk & BIT(pin_pos))) { in gpio_mec5_get_direction() 397 map &= ~BIT(pin_pos); in gpio_mec5_get_direction()
|
| A D | gpio_ambiq.c | 207 static int ambiq_gpio_port_get_direction(const struct device *dev, gpio_port_pins_t map, in ambiq_gpio_port_get_direction() argument 219 if ((map >> i) & 1) { in ambiq_gpio_port_get_direction() 230 if ((map >> i) & 1) { in ambiq_gpio_port_get_direction() 245 if ((map >> i) & 1) { in ambiq_gpio_port_get_direction() 256 if ((map >> i) & 1) { in ambiq_gpio_port_get_direction()
|
| A D | gpio_axp192.c | 228 static int gpio_axp192_port_get_direction(const struct device *dev, gpio_port_pins_t map, in gpio_axp192_port_get_direction() argument 242 if ((map & (1u << gpio)) != 0) { in gpio_axp192_port_get_direction()
|
| A D | gpio_eos_s3.c | 360 static int gpio_eos_s3_port_get_direction(const struct device *port, gpio_port_pins_t map, in gpio_eos_s3_port_get_direction() argument 369 map &= config->common.port_pin_mask; in gpio_eos_s3_port_get_direction()
|
| A D | gpio_silabs_siwx91x.c | 223 int gpio_siwx91x_port_get_direction(const struct device *port, gpio_port_pins_t map, in gpio_siwx91x_port_get_direction() argument 235 if ((map & BIT(i))) { in gpio_siwx91x_port_get_direction()
|
| /drivers/pcie/host/ |
| A D | vc.c | 128 int pcie_vc_map_tc(pcie_bdf_t bdf, struct pcie_vctc_map *map) in pcie_vc_map_tc() argument 140 if (regs.cap_reg_1.vc_count != map->vc_count) { in pcie_vc_map_tc() 145 for (idx = 0; idx < map->vc_count; idx++) { in pcie_vc_map_tc() 146 if (idx == 0 && !(map->vc_tc[idx] & PCIE_VC_SET_TC0)) { in pcie_vc_map_tc() 152 if (tc_mapped & map->vc_tc[idx]) { in pcie_vc_map_tc() 156 tc_mapped |= map->vc_tc[idx]; in pcie_vc_map_tc() 168 res_regs[idx].ctrl_reg.tc_vc_map = map->vc_tc[idx]; in pcie_vc_map_tc()
|
| A D | msi.c | 207 uint32_t map = pcie_msi_map(irq, &vectors[i], 1); in enable_msix() local 210 sys_write32(map, (mm_reg_t) &vectors[i].msix_vector->msg_addr); in enable_msix() 242 uint32_t map; in enable_msi() local 246 map = pcie_msi_map(irq, vectors, n_vector); in enable_msi() 247 pcie_conf_write(bdf, base + PCIE_MSI_MAP0, map); in enable_msi()
|
| /drivers/sensor/maxim/max30101/ |
| A D | max30101.c | 78 fifo_chan = data->map[led_chan]; in max30101_channel_get() 189 data->map[led_chan] = MAX30101_MAX_NUM_CHANNELS; in max30101_init() 199 data->map[led_chan] = fifo_chan; in max30101_init()
|
| A D | max30101.h | 99 uint8_t map[MAX30101_MAX_NUM_CHANNELS]; member
|
| /drivers/xen/ |
| A D | gnttab.c | 155 int32_t gnttab_alloc_and_grant(void **map, bool readonly) in gnttab_alloc_and_grant() argument 161 __ASSERT_NO_MSG(map != NULL); in gnttab_alloc_and_grant() 171 *map = page; in gnttab_alloc_and_grant()
|
| A D | Kconfig | 16 that you want to map.
|
| /drivers/bluetooth/hci/ |
| A D | Kconfig.esp32 | 201 Evaluate channel quality periodically and update the channel map every 4 seconds. 215 bool "Terminate on channel map update timeout" 676 bool "BLE ACL channel map update procedure" 679 when Instant Passed (0x28) error occurs in channel map update procedure. 702 Record channel quality and update map periodically for better link reliability.
|