/openbmc/linux/include/linux/ |
H A D | sbitmap.h | 176 if (index == sb->map_nr - 1) in __map_depth() 177 return sb->depth - (index << sb->shift); in __map_depth() 256 unsigned int index; in __sbitmap_for_each_set() local 262 index = SB_NR_TO_INDEX(sb, start); in __sbitmap_for_each_set() 268 __map_depth(sb, index) - nr, in __sbitmap_for_each_set() 272 word = sb->map[index].word & ~sb->map[index].cleared; in __sbitmap_for_each_set() 293 if (++index >= sb->map_nr) in __sbitmap_for_each_set() 294 index = 0; in __sbitmap_for_each_set() 550 static inline int sbq_index_inc(int index) in sbq_index_inc() argument 557 int old = atomic_read(index); in sbq_index_atomic_inc() [all …]
|
H A D | of_irq.h | 23 int of_irq_parse_oldworld(const struct device_node *device, int index, 28 static inline int of_irq_parse_oldworld(const struct device_node *device, int index, in of_irq_parse_oldworld() argument 37 extern int of_irq_to_resource(struct device_node *dev, int index, 42 extern int of_irq_parse_one(struct device_node *device, int index, 45 extern int of_irq_get(struct device_node *dev, int index); 62 static inline int of_irq_parse_one(struct device_node *device, int index, in of_irq_parse_one() argument 71 static inline int of_irq_get(struct device_node *dev, int index) in of_irq_get() argument 116 extern unsigned int irq_of_parse_and_map(struct device_node *node, int index); 120 int index) in irq_of_parse_and_map() argument
|
/openbmc/qemu/hw/intc/ |
H A D | ioapic.c | 299 int index; in ioapic_mem_read() local 323 if (index >= 0 && index < IOAPIC_NUM_PINS) { in ioapic_mem_read() 325 val = s->ioredtbl[index] >> 32; in ioapic_mem_read() 372 int index; in ioapic_mem_write() local 394 if (index >= 0 && index < IOAPIC_NUM_PINS) { in ioapic_mem_write() 397 s->ioredtbl[index] &= 0xffffffff; in ioapic_mem_write() 400 s->ioredtbl[index] &= ~0xffffffffULL; in ioapic_mem_write() 401 s->ioredtbl[index] |= val; in ioapic_mem_write() 404 s->ioredtbl[index] &= IOAPIC_RW_BITS; in ioapic_mem_write() 405 s->ioredtbl[index] |= ro_bits; in ioapic_mem_write() [all …]
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | cfp.c | 185 u8 index, u8 ht_info) in mwifiex_index_to_acs_data_rate() argument 193 mcs_index = min(index & 0xF, 9); in mwifiex_index_to_acs_data_rate() 217 } else if (index < 16) { in mwifiex_index_to_acs_data_rate() 228 index = 0; in mwifiex_index_to_acs_data_rate() 229 rate = mwifiex_data_rates[index]; in mwifiex_index_to_acs_data_rate() 239 u8 index, u8 ht_info) in mwifiex_index_to_data_rate() argument 258 rate = mcs_rate[1][index]; in mwifiex_index_to_data_rate() 261 rate = mcs_rate[0][index]; in mwifiex_index_to_data_rate() 265 rate = mcs_rate[3][index]; in mwifiex_index_to_data_rate() 268 rate = mcs_rate[2][index]; in mwifiex_index_to_data_rate() [all …]
|
/openbmc/linux/drivers/platform/x86/intel/pmc/ |
H A D | core.c | 267 for (index = 0; index < arr_size; index++) { in pmc_core_lpm_display() 279 for (index = 0; maps[idx][index].name && index < len; index++) { in pmc_core_lpm_display() 327 for (index = 0; index < pmc->map->ppfear_buckets && in pmc_core_ppfear_show() 328 index < PPFEAR_MAX_NUM_ENTRIES; index++, iter++) in pmc_core_ppfear_show() 332 for (index = 0; maps[idx][index].name && in pmc_core_ppfear_show() 406 for (index = 0; index < 8 && map[index].name; index++) { in pmc_core_mphy_pg_show() 413 for (index = 8; map[index].name; index++) { in pmc_core_mphy_pg_show() 451 for (index = 0; map[index].name ; index++) { in pmc_core_pll_show() 636 for (index = 0; map[index].name; index++) { in pmc_core_ltr_show() 926 int index; in pmc_core_pkgc_show() local [all …]
|
/openbmc/linux/drivers/md/persistent-data/ |
H A D | dm-space-map-common.c | 546 return index >= 0 && in contains_key() 554 int index; in __sm_ll_inc_overflow() local 586 int index; in sm_ll_inc_overflow() local 774 int index = -1; in __sm_ll_dec_overflow() local 811 int index; in sm_ll_dec_overflow() local 962 memcpy(ie, ll->mi_le.index + index, sizeof(*ie)); in metadata_ll_load_ie() 970 memcpy(ll->mi_le.index + index, ie, sizeof(*ie)); in metadata_ll_save_ie() 1116 if (iec->index == index) { in disk_ll_load_ie() 1132 iec->index = index; in disk_ll_load_ie() 1148 if (iec->index == index) { in disk_ll_save_ie() [all …]
|
/openbmc/linux/drivers/tty/serial/ |
H A D | icom.c | 478 for (index = 0; index < NUM_XBUFFS; index++) { in get_port_memory() 506 for (index = 0; index < NUM_RBUFFS; index++) { in get_port_memory() 637 for (index = 0; index < fw->size; index++) in load_code() 657 for (index = ICOM_DCE_IRAM_OFFSET; index < fw->size; index++) in load_code() 701 for (index = 0; index < fw->size; index++) in load_code() 721 for (index = 0; index < 10; index++) { in load_code() 1278 for (index = 0; index < 10; index++) { in icom_send_xchar() 1415 for (index = 0; index < BAUD_TABLE_LIMIT; index++) { in icom_set_termios() 1469 for (index = 0; index < 10; index++) { in icom_set_termios() 1500 for (index = 0; index < 10; index++) { in icom_set_termios() [all …]
|
/openbmc/linux/lib/ |
H A D | radix-tree.c | 759 if (index > maxindex) in __radix_tree_lookup() 795 unsigned long index) in radix_tree_lookup_slot() argument 974 BUG_ON(index > maxindex); in radix_tree_tag_set() 1037 if (index > maxindex) in radix_tree_tag_clear() 1091 if (index > maxindex) in radix_tree_tag_get() 1174 if (!index && iter->index) in radix_tree_next_chunk() 1179 if (index > maxindex) in radix_tree_next_chunk() 1186 iter->index = index; in radix_tree_next_chunk() 1216 if (!index) in radix_tree_next_chunk() 1230 iter->index = (index &~ node_maxindex(node)) | offset; in radix_tree_next_chunk() [all …]
|
/openbmc/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hem.c | 359 index->l0 = l0_idx; in calc_hem_config() 364 index->l0 = l0_idx; in calc_hem_config() 368 index->buf = l0_idx; in calc_hem_config() 395 table->hem[index->buf] = NULL; in free_mhop_hem() 401 table->bt_l1[index->l1] = NULL; in free_mhop_hem() 435 index->inited |= HEM_INDEX_L0; in alloc_mhop_hem() 448 index->inited |= HEM_INDEX_L1; in alloc_mhop_hem() 461 if (!table->hem[index->buf]) { in alloc_mhop_hem() 466 index->inited |= HEM_INDEX_BUF; in alloc_mhop_hem() 539 if (table->hem[index.buf]) { in hns_roce_table_mhop_get() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | udisp.c | 31 nvkm_udisp_sclass(struct nvkm_object *object, int index, struct nvkm_oclass *sclass) in nvkm_udisp_sclass() argument 35 if (index-- == 0) { in nvkm_udisp_sclass() 41 if (index-- == 0) { in nvkm_udisp_sclass() 47 if (index-- == 0) { in nvkm_udisp_sclass() 53 if (disp->func->user[index].ctor) { in nvkm_udisp_sclass() 54 sclass->base = disp->func->user[index].base; in nvkm_udisp_sclass() 55 sclass->ctor = disp->func->user[index].ctor; in nvkm_udisp_sclass() 103 args->v0.conn_mask |= BIT(conn->index); in nvkm_udisp_new() 107 args->v0.outp_mask |= BIT(outp->index); in nvkm_udisp_new()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-nvram.c | 26 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index) in opal_nvram_read() argument 31 if (*index >= nvram_size) in opal_nvram_read() 33 off = *index; in opal_nvram_read() 39 *index += count; in opal_nvram_read() 47 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index) in opal_nvram_write() argument 52 if (*index >= nvram_size) in opal_nvram_write() 54 off = *index; in opal_nvram_write() 77 *index += count; in opal_nvram_write()
|
/openbmc/u-boot/arch/arm/mach-sunxi/ |
H A D | pinmux.c | 14 u32 index = GPIO_CFG_INDEX(bank_offset); in sunxi_gpio_set_cfgbank() local 17 clrsetbits_le32(&pio->cfg[0] + index, 0xf << offset, val << offset); in sunxi_gpio_set_cfgbank() 30 u32 index = GPIO_CFG_INDEX(bank_offset); in sunxi_gpio_get_cfgbank() local 34 cfg = readl(&pio->cfg[0] + index); in sunxi_gpio_get_cfgbank() 51 u32 index = GPIO_DRV_INDEX(pin); in sunxi_gpio_set_drv() local 55 clrsetbits_le32(&pio->drv[0] + index, 0x3 << offset, val << offset); in sunxi_gpio_set_drv() 63 u32 index = GPIO_PULL_INDEX(pin); in sunxi_gpio_set_pull() local 67 clrsetbits_le32(&pio->pull[0] + index, 0x3 << offset, val << offset); in sunxi_gpio_set_pull()
|
/openbmc/linux/arch/x86/kvm/ |
H A D | mtrr.c | 288 int index; in fixed_mtrr_addr_seg_to_range_index() local 291 index = mtrr_seg->range_start; in fixed_mtrr_addr_seg_to_range_index() 293 return index; in fixed_mtrr_addr_seg_to_range_index() 380 int index; in kvm_mtrr_set_msr() local 386 if (index >= 0) in kvm_mtrr_set_msr() 399 int index; in kvm_mtrr_get_msr() local 417 if (index >= 0) { in kvm_mtrr_get_msr() 456 int index; member 473 int seg, index; in mtrr_lookup_fixed_start() local 484 iter->index = index; in mtrr_lookup_fixed_start() [all …]
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker_desc.c | 34 int index; member 96 return ring->index; in desc_ring_index() 158 DescInfo *info = &ring->info[index]; in desc_read() 166 static void desc_write(DescRing *ring, uint32_t index) in desc_write() argument 169 DescInfo *info = &ring->info[index]; in desc_write() 179 ring->index); in desc_ring_base_addr_check() 217 ring->index); in desc_ring_post_desc() 263 new, ring->index, ring->size); in desc_ring_set_head() 271 ring->index, head, tail, new); in desc_ring_set_head() 335 DescRing *desc_ring_alloc(Rocker *r, int index) in desc_ring_alloc() argument [all …]
|
/openbmc/linux/sound/soc/amd/renoir/ |
H A D | rn-pci-acp3x.c | 216 int ret, index; in snd_rn_acp_probe() local 324 for (index = 0; index < ACP_DEVS; index++) { in snd_rn_acp_probe() 325 adata->pdev[index] = in snd_rn_acp_probe() 327 if (IS_ERR(adata->pdev[index])) { in snd_rn_acp_probe() 329 pdevinfo[index].name); in snd_rn_acp_probe() 330 ret = PTR_ERR(adata->pdev[index]); in snd_rn_acp_probe() 341 for (index = 0; index < ACP_DEVS; index++) in snd_rn_acp_probe() 342 platform_device_unregister(adata->pdev[index]); in snd_rn_acp_probe() 397 int ret, index; in snd_rn_acp_remove() local 400 for (index = 0; index < ACP_DEVS; index++) in snd_rn_acp_remove() [all …]
|
/openbmc/linux/drivers/soc/apple/ |
H A D | sart.c | 52 void (*get_entry)(struct apple_sart *sart, int index, u8 *flags, 54 void (*set_entry)(struct apple_sart *sart, int index, u8 flags, 74 u32 cfg = readl(sart->regs + APPLE_SART2_CONFIG(index)); in sart2_get_entry() 91 writel(paddr_shifted, sart->regs + APPLE_SART2_PADDR(index)); in sart2_set_entry() 92 writel(cfg, sart->regs + APPLE_SART2_CONFIG(index)); in sart2_set_entry() 107 size_t size_ = readl(sart->regs + APPLE_SART3_SIZE(index)); in sart3_get_entry() 109 *flags = readl(sart->regs + APPLE_SART3_CONFIG(index)); in sart3_get_entry() 117 writel(paddr_shifted, sart->regs + APPLE_SART3_PADDR(index)); in sart3_set_entry() 118 writel(size_shifted, sart->regs + APPLE_SART3_SIZE(index)); in sart3_set_entry() 119 writel(flags, sart->regs + APPLE_SART3_CONFIG(index)); in sart3_set_entry() [all …]
|
/openbmc/qemu/hw/acpi/ |
H A D | erst.c | 484 for (; index < s->last_record_index; ++index) { in find_next_empty_record_index() 508 for (index = s->first_record_index; index < s->last_record_index && in lookup_erst_record() 532 unsigned index; in get_next_record_identifier() local 544 for (; index < s->last_record_index; ++index) { in get_next_record_identifier() 567 unsigned index; in clear_erst_record() local 575 if (index) { in clear_erst_record() 593 unsigned index; in read_erst_record() local 620 if (index) { in read_erst_record() 662 unsigned index; in write_erst_record() local 702 if (index) { in write_erst_record() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/ |
H A D | CVE-2019-7572.patch | 92 + if ( state->index > 88 ) { 93 + state->index = 88; 95 + if ( state->index < 0 ) { 96 + state->index = 0; 100 step = step_table[state->index]; 104 /* Update index value */ 105 state->index += index_table[nybble]; 106 - if ( state->index > 88 ) { 107 - state->index = 88; 109 - if ( state->index < 0 ) { [all …]
|
/openbmc/linux/drivers/scsi/snic/ |
H A D | vnic_wq.c | 13 unsigned int index, enum vnic_res_type res_type) in vnic_wq_get_ctrl() argument 15 wq->ctrl = svnic_dev_get_res(vdev, res_type, index); in vnic_wq_get_ctrl() 23 unsigned int index, unsigned int desc_count, unsigned int desc_size) in vnic_wq_alloc_ring() argument 47 buf->index = i * VNIC_WQ_BUF_DFLT_BLK_ENTRIES + j; in vnic_wq_alloc_bufs() 49 wq->ring.desc_size * buf->index; in vnic_wq_alloc_bufs() 50 if (buf->index + 1 == count) { in vnic_wq_alloc_bufs() 90 wq->index = 0; in vnic_wq_devcmd2_alloc() 114 wq->index = index; in svnic_wq_alloc() 117 err = vnic_wq_get_ctrl(vdev, wq, index, RES_TYPE_WQ); in svnic_wq_alloc() 119 pr_err("Failed to hook WQ[%d] resource\n", index); in svnic_wq_alloc() [all …]
|
/openbmc/linux/drivers/clk/qcom/ |
H A D | lpass-gfm-sm8250.c | 52 if (index) in clk_gfm_set_parent() 79 .index = 0, 82 .index = 1, 98 .index = 0, 101 .index = 1, 118 .index = 0, 121 .index = 1, 138 .index = 0, 141 .index = 1, 158 .index = 0, [all …]
|
/openbmc/linux/drivers/media/usb/dvb-usb-v2/ |
H A D | az6007.c | 258 u16 index; in az6007_ci_read_attribute_mem() local 273 index = 0; in az6007_ci_read_attribute_mem() 300 u16 index; in az6007_ci_write_attribute_mem() local 331 u16 index; in az6007_ci_read_cam_control() local 346 index = 0; in az6007_ci_read_cam_control() 377 u16 index; in az6007_ci_write_cam_control() local 407 u16 index; in CI_CamReady() local 417 index = 0; in CI_CamReady() 439 u16 index; in az6007_ci_slot_reset() local 446 index = 0; in az6007_ci_slot_reset() [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | lineage-pem.c | 205 switch (index) { in pem_get_data() 207 val = (data[index] + (data[index+1] << 8)) * 5 / 2; in pem_get_data() 210 val = data[index] * 200; in pem_get_data() 232 switch (index) { in pem_get_input() 235 val = (data[index] + (data[index+1] << 8) - 75) * 1000; in pem_get_input() 241 index++; in pem_get_input() 242 val = (data[index] + (data[index+1] << 8)) * 1000000L; in pem_get_input() 255 switch (index) { in pem_get_fan() 297 attr->index); in pem_data_show() 313 attr->index); in pem_input_show() [all …]
|
/openbmc/linux/drivers/scsi/isci/ |
H A D | remote_node_table.c | 317 u32 index; in sci_remote_node_table_initialize() local 341 for (index = 0; index < remote_node_entries; index++) { in sci_remote_node_table_initialize() 342 sci_remote_node_table_set_node_index(remote_node_table, index); in sci_remote_node_table_initialize() 349 for (index = 0; index < (remote_node_entries / SCU_STP_REMOTE_NODE_COUNT); index++) { in sci_remote_node_table_initialize() 353 sci_remote_node_table_set_group_index(remote_node_table, 2, index); in sci_remote_node_table_initialize() 358 sci_remote_node_table_set_group_index(remote_node_table, 1, index); in sci_remote_node_table_initialize() 360 sci_remote_node_table_set_group_index(remote_node_table, 0, index); in sci_remote_node_table_initialize() 383 u8 index; in sci_remote_node_table_allocate_single_remote_node() local 396 for (index = 0; index < SCU_STP_REMOTE_NODE_COUNT; index++) { in sci_remote_node_table_allocate_single_remote_node() 397 if (((1 << index) & group_value) != 0) { in sci_remote_node_table_allocate_single_remote_node() [all …]
|
/openbmc/linux/arch/m68k/coldfire/ |
H A D | intc.c | 45 void mcf_setimr(int index) in mcf_setimr() argument 49 __raw_writew(imr | (0x1 << index), MCFSIM_IMR); in mcf_setimr() 52 void mcf_clrimr(int index) in mcf_clrimr() argument 56 __raw_writew(imr & ~(0x1 << index), MCFSIM_IMR); in mcf_clrimr() 69 void mcf_setimr(int index) in mcf_setimr() argument 73 __raw_writel(imr | (0x1 << index), MCFSIM_IMR); in mcf_setimr() 76 void mcf_clrimr(int index) in mcf_clrimr() argument 80 __raw_writel(imr & ~(0x1 << index), MCFSIM_IMR); in mcf_clrimr()
|
/openbmc/linux/arch/x86/boot/ |
H A D | video.h | 97 static inline u8 in_idx(u16 port, u8 index) in in_idx() argument 99 outb(index, port); in in_idx() 103 static inline void out_idx(u8 v, u16 port, u8 index) in out_idx() argument 105 outw(index+(v << 8), port); in out_idx() 109 static inline u8 tst_idx(u8 v, u16 port, u8 index) in tst_idx() argument 111 out_idx(port, index, v); in tst_idx() 112 return in_idx(port, index); in tst_idx()
|