Home
last modified time | relevance | path

Searched refs:index (Results 251 – 275 of 10309) sorted by relevance

1...<<11121314151617181920>>...413

/openbmc/qemu/hw/intc/
H A Dioapic.c299 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 Dcfp.c185 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/gpu/drm/nouveau/nvkm/engine/disp/
H A Dudisp.c31 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/include/linux/
H A Dof_irq.h23 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/linux/drivers/usb/host/
H A Docteon-hcd.c369 int index; member
1214 usb->index) ^ 4; in cvmx_usb_fill_tx_hw()
1804 usb->index), in cvmx_usb_start_channel()
1809 usb->index), in cvmx_usb_start_channel()
1819 usb->index)) in cvmx_usb_start_channel()
2315 usb->index)); in cvmx_usb_cancel()
2324 usb->index), in cvmx_usb_cancel()
2616 usb->index)); in cvmx_usb_poll_channel()
2626 usb->index), in cvmx_usb_poll_channel()
2656 usb->index, channel); in cvmx_usb_poll_channel()
[all …]
/openbmc/linux/drivers/platform/x86/intel/pmc/
H A Dcore.c267 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 Ddm-space-map-common.c546 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 Dicom.c478 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 Dradix-tree.c759 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/arch/x86/kvm/
H A Dmtrr.c288 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 Drocker_desc.c34 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 Drn-pci-acp3x.c216 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 Dsart.c52 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/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c359 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/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl-1.2.15/
H A DCVE-2019-7572.patch92 + 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 Dvnic_wq.c13 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 Dlpass-gfm-sm8250.c52 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/arch/m68k/coldfire/
H A Dintc.c45 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 Dvideo.h97 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()
/openbmc/u-boot/board/st/stih410-b2260/
H A Dboard.c46 .index = 0,
49 int usb_gadget_handle_interrupts(int index) in usb_gadget_handle_interrupts() argument
51 dwc3_uboot_handle_interrupt(index); in usb_gadget_handle_interrupts()
55 int board_usb_init(int index, enum usb_init_type init) in board_usb_init() argument
68 int board_usb_cleanup(int index, enum usb_init_type init) in board_usb_cleanup() argument
70 dwc3_uboot_exit(index); in board_usb_cleanup()
/openbmc/qemu/hw/acpi/
H A Derst.c484 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/linux/drivers/hwmon/
H A Dlineage-pem.c205 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 Dremote_node_table.c317 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/drivers/media/usb/dvb-usb-v2/
H A Daz6007.c258 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/tools/perf/ui/browsers/
H A Dscripts.c29 int index; member
52 c->names[c->index] = name; in add_script_option()
53 if (asprintf(&c->paths[c->index], in add_script_option()
58 c->index++; in add_script_option()
68 if (c->index >= SCRIPT_MAX_NO) in scripts_config()
70 c->names[c->index] = strdup(var + 7); in scripts_config()
71 if (!c->names[c->index]) in scripts_config()
73 if (asprintf(&c->paths[c->index], "%s %s", value, in scripts_config()
76 c->index++; in scripts_config()
115 custom_perf = scriptc.index; in list_scripts()
[all …]

1...<<11121314151617181920>>...413