| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
| H A D | gf119.c | 58 int indx = pwm_info(therm, line); in gf119_fan_pwm_ctrl() local 59 if (indx < 0) in gf119_fan_pwm_ctrl() 60 return indx; in gf119_fan_pwm_ctrl() 61 else if (indx < 2) in gf119_fan_pwm_ctrl() 71 int indx = pwm_info(therm, line); in gf119_fan_pwm_get() local 72 if (indx < 0) in gf119_fan_pwm_get() 73 return indx; in gf119_fan_pwm_get() 74 else if (indx < 2) { in gf119_fan_pwm_get() 76 *divs = nvkm_rd32(device, 0x00e114 + (indx * 8)); in gf119_fan_pwm_get() 77 *duty = nvkm_rd32(device, 0x00e118 + (indx * 8)); in gf119_fan_pwm_get() [all …]
|
| H A D | nv50.c | 28 pwm_info(struct nvkm_therm *therm, int *line, int *ctrl, int *indx) in pwm_info() argument 35 *indx = 0; in pwm_info() 40 *indx = 1; in pwm_info() 45 *indx = 0; in pwm_info()
|
| /linux/fs/ntfs3/ |
| H A D | index.c | 204 static int bmp_buf_get(struct ntfs_index *indx, struct ntfs_inode *ni, in bmp_buf_get() argument 215 const struct INDEX_NAMES *in = &s_index_names[indx->type]; in bmp_buf_get() 246 bh = ntfs_bread_run(sbi, &indx->bitmap_run, off); in bmp_buf_get() 314 static int indx_mark_used(struct ntfs_index *indx, struct ntfs_inode *ni, in indx_mark_used() argument 320 err = bmp_buf_get(indx, ni, bit, &bbuf); in indx_mark_used() 334 static int indx_mark_free(struct ntfs_index *indx, struct ntfs_inode *ni, in indx_mark_free() argument 340 err = bmp_buf_get(indx, ni, bit, &bbuf); in indx_mark_free() 359 struct ntfs_index *indx, size_t from, in scan_nres_bitmap() argument 366 struct runs_tree *run = &indx->bitmap_run; in scan_nres_bitmap() 367 struct rw_semaphore *lock = &indx->run_lock; in scan_nres_bitmap() [all …]
|
| H A D | fsntfs.c | 1988 struct ntfs_index *indx = &sbi->security.index_sii; in ntfs_get_security_by_id() local 2006 root_sii = indx_get_root(indx, ni, NULL, NULL); in ntfs_get_security_by_id() 2013 err = indx_find(indx, ni, root_sii, &security_id, sizeof(security_id), in ntfs_get_security_by_id() 2289 struct ntfs_index *indx = &sbi->reparse.index_r; in ntfs_reparse_init() local 2312 err = indx_init(indx, sbi, attr, INDEX_MUTEX_SR); in ntfs_reparse_init() 2327 struct ntfs_index *indx = &sbi->objid.index_o; in ntfs_objid_init() local 2350 err = indx_init(indx, sbi, attr, INDEX_MUTEX_SO); in ntfs_objid_init() 2362 struct ntfs_index *indx = &sbi->objid.index_o; in ntfs_objid_remove() local 2369 err = indx_delete_entry(indx, ni, guid, sizeof(*guid), NULL); in ntfs_objid_remove() 2382 struct ntfs_index *indx = &sbi->reparse.index_r; in ntfs_insert_reparse() local [all …]
|
| H A D | ntfs_fs.h | 729 int indx_used_bit(struct ntfs_index *indx, struct ntfs_inode *ni, size_t *bit); 743 int indx_init(struct ntfs_index *indx, struct ntfs_sb_info *sbi, 745 struct INDEX_ROOT *indx_get_root(struct ntfs_index *indx, struct ntfs_inode *ni, 754 int indx_find(struct ntfs_index *indx, struct ntfs_inode *dir, 758 int indx_find_sort(struct ntfs_index *indx, struct ntfs_inode *ni, 761 int indx_find_raw(struct ntfs_index *indx, struct ntfs_inode *ni, 764 int indx_insert_entry(struct ntfs_index *indx, struct ntfs_inode *ni, 767 int indx_delete_entry(struct ntfs_index *indx, struct ntfs_inode *ni,
|
| /linux/drivers/gpu/host1x/hw/ |
| H A D | opcodes.h | 14 unsigned indx, unsigned threshold) in host1x_class_host_wait_syncpt() argument 16 return host1x_uclass_wait_syncpt_indx_f(indx) in host1x_class_host_wait_syncpt() 21 unsigned indx, unsigned threshold) in host1x_class_host_load_syncpt_base() argument 23 return host1x_uclass_load_syncpt_base_base_indx_f(indx) in host1x_class_host_load_syncpt_base() 28 unsigned indx, unsigned base_indx, unsigned offset) in host1x_class_host_wait_syncpt_base() argument 30 return host1x_uclass_wait_syncpt_base_indx_f(indx) in host1x_class_host_wait_syncpt_base() 43 unsigned cond, unsigned indx) in host1x_class_host_incr_syncpt() argument 46 | host1x_uclass_incr_syncpt_indx_f(indx); in host1x_class_host_incr_syncpt() 97 static inline u32 host1x_opcode_imm_incr_syncpt(unsigned cond, unsigned indx) in host1x_opcode_imm_incr_syncpt() argument 100 host1x_class_host_incr_syncpt(cond, indx)); in host1x_opcode_imm_incr_syncpt()
|
| /linux/drivers/infiniband/hw/bng_re/ |
| H A D | bng_res.h | 142 u32 indx, u64 *pg) in bng_re_get_qe() argument 146 pg_num = (indx / hwq->qe_ppg); in bng_re_get_qe() 147 pg_idx = (indx % hwq->qe_ppg); in bng_re_get_qe() 153 #define BNG_RE_INIT_DBHDR(xid, type, indx, toggle) \ argument 155 (type) | BNG_RE_DBR_VALID) << 32) | (indx) | \ 162 u32 indx; in bng_re_ring_db() local 169 indx = (info->hwq->cons & DBC_DBC_INDEX_MASK) | in bng_re_ring_db() 173 key = BNG_RE_INIT_DBHDR(info->xid, type, indx, toggle); in bng_re_ring_db()
|
| /linux/arch/powerpc/sysdev/xics/ |
| H A D | icp-native.c | 238 unsigned int *indx) in icp_native_init_one_node() argument 259 *indx = of_read_number(ireg, 1); in icp_native_init_one_node() 278 " for interrupt server 0x%x (%d)\n", *indx, err); in icp_native_init_one_node() 282 if (icp_native_map_one_cpu(*indx, r.start, resource_size(&r))) in icp_native_init_one_node() 285 (*indx)++; in icp_native_init_one_node() 305 u32 indx = 0; in icp_native_init() local 309 if (icp_native_init_one_node(np, &indx) == 0) in icp_native_init() 314 if (icp_native_init_one_node(np, &indx) == 0) in icp_native_init()
|
| /linux/drivers/infiniband/hw/bnxt_re/ |
| H A D | qplib_res.h | 394 u32 indx, u64 *pg) in bnxt_qplib_get_qe() argument 398 pg_num = (indx / hwq->qe_ppg); in bnxt_qplib_get_qe() 399 pg_idx = (indx % hwq->qe_ppg); in bnxt_qplib_get_qe() 485 #define BNXT_QPLIB_INIT_DBHDR(xid, type, indx, toggle) \ argument 487 (type) | BNXT_QPLIB_DBR_VALID) << 32) | (indx) | \ 494 u32 indx; in bnxt_qplib_ring_db() local 501 indx = (info->hwq->cons & DBC_DBC_INDEX_MASK) | in bnxt_qplib_ring_db() 505 key = BNXT_QPLIB_INIT_DBHDR(info->xid, type, indx, toggle); in bnxt_qplib_ring_db() 513 u32 indx; in bnxt_qplib_ring_prod_db() local 515 indx = (((info->hwq->prod / info->max_slot) & DBC_DBC_INDEX_MASK) | in bnxt_qplib_ring_prod_db() [all …]
|
| H A D | qplib_fp.h | 662 int indx; in bnxt_qplib_calc_ilsize() local 664 for (indx = 0; indx < wqe->num_sge; indx++) in bnxt_qplib_calc_ilsize() 665 size += wqe->sg_list[indx].size; in bnxt_qplib_calc_ilsize()
|
| H A D | main.c | 443 int indx; in bnxt_re_stop_irq() local 458 for (indx = BNXT_RE_NQ_IDX; indx < rdev->nqr->num_msix; indx++) { in bnxt_re_stop_irq() 459 nq = &rdev->nqr->nq[indx - 1]; in bnxt_re_stop_irq() 473 int indx, rc; in bnxt_re_start_irq() local 493 for (indx = 0; indx < rdev->nqr->num_msix; indx++) in bnxt_re_start_irq() 494 rdev->nqr->msix_entries[indx].vector = ent[indx].vector; in bnxt_re_start_irq() 502 for (indx = BNXT_RE_NQ_IDX ; indx < rdev->nqr->num_msix; indx++) { in bnxt_re_start_irq() 503 nq = &rdev->nqr->nq[indx - 1]; in bnxt_re_start_irq() 504 rc = bnxt_qplib_nq_start_irq(nq, indx - 1, in bnxt_re_start_irq() 505 msix_ent[indx].vector, false); in bnxt_re_start_irq() [all …]
|
| H A D | qplib_fp.c | 799 int indx; in bnxt_qplib_alloc_init_swq() local 807 for (indx = 0; indx < que->max_sw_wqe; indx++) in bnxt_qplib_alloc_init_swq() 808 que->swq[indx].next_idx = indx + 1; in bnxt_qplib_alloc_init_swq() 1751 int indx; in bnxt_qplib_put_inline() local 1755 for (indx = 0; indx < wqe->num_sge; indx++) { in bnxt_qplib_put_inline() 1756 len = wqe->sg_list[indx].size; in bnxt_qplib_put_inline() 1757 il_src = (void *)wqe->sg_list[indx].addr; in bnxt_qplib_put_inline() 1791 int indx, len = 0; in bnxt_qplib_put_sges() local 1793 for (indx = 0; indx < nsge; indx++, (*idx)++) { in bnxt_qplib_put_sges() 1795 dsge->va_or_pa = cpu_to_le64(ssge[indx].addr); in bnxt_qplib_put_sges() [all …]
|
| /linux/drivers/net/ppp/ |
| H A D | bsd_comp.c | 466 int indx; in bsd_init() local 478 indx = LAST; in bsd_init() 481 db->lens[indx] = 1; in bsd_init() 483 while (indx-- > 0); in bsd_init() 486 indx = db->hsize; in bsd_init() 487 while (indx-- != 0) in bsd_init() 489 db->dict[indx].codem1 = BADCODEM1; in bsd_init() 490 db->dict[indx].cptr = 0; in bsd_init() 701 int indx; in bsd_compress() local 715 indx = dictp2->cptr; in bsd_compress() [all …]
|
| /linux/drivers/scsi/ |
| H A D | aha1542.c | 742 struct device *pdev, int indx) in aha1542_hw_init() argument 744 unsigned int base_io = io[indx]; in aha1542_hw_init() 769 aha1542_set_bus_times(sh, bus_on[indx], bus_off[indx], dma_speed[indx]); in aha1542_hw_init() 1092 int indx; in aha1542_pnp_probe() local 1095 for (indx = 0; indx < ARRAY_SIZE(io); indx++) { in aha1542_pnp_probe() 1096 if (io[indx]) in aha1542_pnp_probe() 1102 io[indx] = pnp_port_start(pdev, 0); in aha1542_pnp_probe() 1109 dev_info(&pdev->dev, "ISAPnP found an AHA1535 at I/O 0x%03X", io[indx]); in aha1542_pnp_probe() 1112 sh = aha1542_hw_init(&driver_template, &pdev->dev, indx); in aha1542_pnp_probe()
|
| /linux/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma.h | 554 int indx; in ocrdma_get_eq_table_index() local 556 for (indx = 0; indx < dev->eq_cnt; indx++) { in ocrdma_get_eq_table_index() 557 if (dev->eq_tbl[indx].q.id == eqid) in ocrdma_get_eq_table_index() 558 return indx; in ocrdma_get_eq_table_index()
|
| /linux/drivers/net/usb/ |
| H A D | rtl8150.c | 159 static int get_registers(rtl8150_t * dev, u16 indx, u16 size, void *data) in get_registers() argument 162 RTL8150_REQT_READ, indx, 0, data, size, in get_registers() 166 static int set_registers(rtl8150_t * dev, u16 indx, u16 size, const void *data) in set_registers() argument 169 RTL8150_REQT_WRITE, indx, 0, data, size, in set_registers() 184 static int async_set_registers(rtl8150_t *dev, u16 indx, u16 size, u16 reg) in async_set_registers() argument 202 req->dr.wValue = cpu_to_le16(indx); in async_set_registers() 218 static int read_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 * reg) in read_mii_word() argument 225 tmp = indx | PHY_READ | PHY_GO; in read_mii_word() 242 static int write_mii_word(rtl8150_t * dev, u8 phy, __u8 indx, u16 reg) in write_mii_word() argument 250 tmp = indx | PHY_WRITE | PHY_GO; in write_mii_word()
|
| H A D | pegasus.c | 108 static int get_registers(pegasus_t *pegasus, __u16 indx, __u16 size, void *data) in get_registers() argument 111 PEGASUS_REQT_READ, 0, indx, data, size, in get_registers() 115 static int set_registers(pegasus_t *pegasus, __u16 indx, __u16 size, in set_registers() argument 121 PEGASUS_REQT_WRITE, 0, indx, data, size, in set_registers() 134 static int set_register(pegasus_t *pegasus, __u16 indx, __u8 data) in set_register() argument 140 PEGASUS_REQT_WRITE, data, indx, buf, 1, in set_register() 185 static int __mii_op(pegasus_t *p, __u8 phy, __u8 indx, __u16 *regd, __u8 cmd) in __mii_op() argument 189 __u8 data[4] = { phy, 0, 0, indx }; in __mii_op() 197 set_register(p, PhyCtrl, (indx | cmd)); in __mii_op() 222 static int read_mii_word(pegasus_t *pegasus, __u8 phy, __u8 indx, __u16 *regd) in read_mii_word() argument [all …]
|
| /linux/tools/perf/util/cs-etm-decoder/ |
| H A D | cs-etm-decoder.c | 308 const ocsd_trc_index_t indx) in cs_etm_decoder__do_hard_timestamp() argument 351 indx); in cs_etm_decoder__do_hard_timestamp() 359 pr_err("Timestamp calculation underflow at Idx:%" OCSD_TRC_IDX_STR "\n", indx); in cs_etm_decoder__do_hard_timestamp() 586 const ocsd_trc_index_t indx, in cs_etm_decoder__gen_trace_elem_printer() argument 620 indx); in cs_etm_decoder__gen_trace_elem_printer() 760 u64 indx, const u8 *buf, in cs_etm_decoder__process_data_block() argument 780 indx + processed, in cs_etm_decoder__process_data_block()
|
| H A D | cs-etm-decoder.h | 91 u64 indx, const u8 *buf,
|
| /linux/drivers/target/ |
| H A D | target_core_stat.c | 71 CONFIGFS_ATTR_RO(target_stat_, indx); 160 CONFIGFS_ATTR_RO(target_stat_tgt_, indx); 348 CONFIGFS_ATTR_RO(target_stat_lu_, indx); 500 CONFIGFS_ATTR_RO(target_stat_port_, indx); 653 CONFIGFS_ATTR_RO(target_stat_tgt_port_, indx); 781 CONFIGFS_ATTR_RO(target_stat_transport_, indx); 1091 CONFIGFS_ATTR_RO(target_stat_auth_, indx); 1278 CONFIGFS_ATTR_RO(target_stat_iport_, indx);
|
| /linux/arch/x86/lib/ |
| H A D | insn-eval.c | 1160 long base, indx; in get_eff_addr_sib() local 1200 indx = 0; in get_eff_addr_sib() 1204 indx = regs_get_register(regs, indx_offset); in get_eff_addr_sib() 1210 idx32 = indx & 0xffffffff; in get_eff_addr_sib() 1217 *eff_addr = base + indx * (1 << X86_SIB_SCALE(insn->sib.value)); in get_eff_addr_sib()
|
| /linux/drivers/hwmon/ |
| H A D | w83791d.c | 583 int indx = 0; in store_fan_div() local 601 indx = 0; in store_fan_div() 606 indx = 0; in store_fan_div() 611 indx = 1; in store_fan_div() 616 indx = 2; in store_fan_div() 621 indx = 2; in store_fan_div() 633 fan_div_reg = w83791d_read(client, W83791D_REG_FAN_DIV[indx]) in store_fan_div() 637 w83791d_write(client, W83791D_REG_FAN_DIV[indx], in store_fan_div()
|
| /linux/net/rds/ |
| H A D | send.c | 970 if (vct->indx >= vct->len) { in rds_rm_size() 983 iov = &vct->vec[vct->indx]; in rds_rm_size() 985 vct->indx++; in rds_rm_size() 1062 if (ind >= vct->indx) in rds_cmsg_send() 1441 for (ind = 0; ind < vct.indx; ind++) in rds_sendmsg() 1448 for (ind = 0; ind < vct.indx; ind++) in rds_sendmsg()
|
| /linux/drivers/target/iscsi/ |
| H A D | iscsi_target_stat.c | 364 CONFIGFS_ATTR_RO(iscsi_stat_tgt_attr_, indx); 496 CONFIGFS_ATTR_RO(iscsi_stat_login_, indx); 561 CONFIGFS_ATTR_RO(iscsi_stat_logout_, indx); 774 CONFIGFS_ATTR_RO(iscsi_stat_sess_, indx);
|
| /linux/drivers/crypto/hisilicon/hpre/ |
| H A D | hpre_main.c | 1019 enum hpre_ctrl_dbgfs_file type, int indx) in hpre_create_debugfs_file() argument 1033 spin_lock_init(&dbg->files[indx].lock); in hpre_create_debugfs_file() 1034 dbg->files[indx].debug = dbg; in hpre_create_debugfs_file() 1035 dbg->files[indx].type = type; in hpre_create_debugfs_file() 1036 dbg->files[indx].index = indx; in hpre_create_debugfs_file() 1038 dbg->files + indx, &hpre_ctrl_debug_fops); in hpre_create_debugfs_file()
|