/drivers/gpu/drm/radeon/ |
H A D | drm_buffer.c | 47 int idx; local 63 for (idx = 0; idx < nr_pages; ++idx) { 65 (*buf)->data[idx] = 66 kmalloc(min(PAGE_SIZE, size - idx * PAGE_SIZE), 70 if ((*buf)->data[idx] == NULL) { 73 idx + 1, size, nr_pages); 83 for (; idx >= 0; --idx) 101 int idx; local 135 int idx; local 158 int idx = drm_buffer_index(buf); local [all...] |
H A D | evergreen_cs.c | 751 unsigned idx) 759 texdw[0] = radeon_get_ib_value(p, idx + 0); 760 texdw[1] = radeon_get_ib_value(p, idx + 1); 761 texdw[2] = radeon_get_ib_value(p, idx + 2); 762 texdw[3] = radeon_get_ib_value(p, idx + 3); 763 texdw[4] = radeon_get_ib_value(p, idx + 4); 764 texdw[5] = radeon_get_ib_value(p, idx + 5); 765 texdw[6] = radeon_get_ib_value(p, idx + 6); 766 texdw[7] = radeon_get_ib_value(p, idx + 7); 1045 unsigned idx, unsigne 748 evergreen_cs_track_validate_texture(struct radeon_cs_parser *p, struct radeon_bo *texture, struct radeon_bo *mipmap, unsigned idx) argument 1043 evergreen_packet0_check(struct radeon_cs_parser *p, struct radeon_cs_packet *pkt, unsigned idx, unsigned reg) argument 1070 unsigned idx; local 1094 evergreen_cs_check_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) argument 1766 evergreen_is_safe_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) argument 1798 unsigned idx; local 2691 u32 idx; local 3239 u32 idx = pkt->idx + 1; local 3384 u32 idx = 0; local 3428 u32 idx = 0; local [all...] |
H A D | r600_cs.c | 839 r = radeon_cs_packet_parse(p, &wait_reg_mem, p->idx); 850 wait_reg_mem_info = radeon_get_ib_value(p, wait_reg_mem.idx + 1); 866 if ((radeon_get_ib_value(p, wait_reg_mem.idx + 2) << 2) != vline_status[0]) { 871 if (radeon_get_ib_value(p, wait_reg_mem.idx + 5) != RADEON_VLINE_STAT) { 877 r = radeon_cs_packet_parse(p, &p3reloc, p->idx + wait_reg_mem.count + 2); 881 h_idx = p->idx - 2; 882 p->idx += wait_reg_mem.count + 2; 883 p->idx += p3reloc.count + 2; 920 unsigned idx, unsigned reg) 929 idx, re 918 r600_packet0_check(struct radeon_cs_parser *p, struct radeon_cs_packet *pkt, unsigned idx, unsigned reg) argument 945 unsigned idx; local 969 r600_cs_check_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) argument 1469 r600_check_texture_resource(struct radeon_cs_parser *p, u32 idx, struct radeon_bo *texture, struct radeon_bo *mipmap, u64 base_offset, u64 mip_offset, u32 tiling_flags) argument 1610 r600_is_safe_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) argument 1632 unsigned idx; local 2441 unsigned idx; local 2479 u32 idx, idx_value; local [all...] |
/drivers/net/can/cc770/ |
H A D | cc770_isa.c | 175 int idx = pdev->id; local 179 dev_dbg(&pdev->dev, "probing idx=%d: port=%#lx, mem=%#lx, irq=%d\n", 180 idx, port[idx], mem[idx], irq[idx]); 181 if (mem[idx]) { 182 if (!request_mem_region(mem[idx], iosize, KBUILD_MODNAME)) { 186 base = ioremap_nocache(mem[idx], iosize); 192 if (indirect[idx] > 298 int idx = pdev->id; local 327 int idx, err; local 372 int idx; local [all...] |
/drivers/net/can/sja1000/ |
H A D | sja1000_isa.c | 133 int idx = pdev->id; local 136 dev_dbg(&pdev->dev, "probing idx=%d: port=%#lx, mem=%#lx, irq=%d\n", 137 idx, port[idx], mem[idx], irq[idx]); 139 if (mem[idx]) { 140 if (!request_mem_region(mem[idx], iosize, DRV_NAME)) { 144 base = ioremap_nocache(mem[idx], iosize); 150 if (indirect[idx] > 239 int idx = pdev->id; local 268 int idx, err; local 314 int idx; local [all...] |
/drivers/staging/vt6655/ |
H A D | rc4.c | 41 unsigned int idx; local 46 for (idx = 0; idx < 256; idx++) 47 pbyst[idx] = (unsigned char)idx; 50 for (idx = 0; idx < 256; idx++) { 51 ust1 = pbyst[idx]; [all...] |
/drivers/net/ethernet/ti/ |
H A D | cpsw_ale.c | 55 int idx; local 57 idx = start / 32; 58 start -= idx * 32; 59 idx = 2 - idx; /* flip */ 60 return (ale_entry[idx] >> start) & BITMASK(bits); 66 int idx; local 69 idx = start / 32; 70 start -= idx * 32; 71 idx 118 cpsw_ale_read(struct cpsw_ale *ale, int idx, u32 *ale_entry) argument 133 cpsw_ale_write(struct cpsw_ale *ale, int idx, u32 *ale_entry) argument 152 int type, idx; local 173 int type, idx; local 189 int type, idx; local 203 int type, idx; local 240 int ret, idx; local 275 int ret, idx; local 308 int idx; local 334 int idx; local 349 int idx, mask; local 380 int idx; local 401 int idx; local 429 int idx; local 449 int type, idx; local [all...] |
/drivers/hid/ |
H A D | hid-primax.c | 28 int idx = size; local 49 while (--idx > 1) { 50 if (data[idx] < 0xE0 || data[idx] > 0xE7) 52 data[0] |= (1 << (data[idx] - 0xE0)); 53 data[idx] = 0;
|
/drivers/staging/lustre/lustre/obdclass/ |
H A D | lprocfs_counters.c | 47 void lprocfs_counter_add(struct lprocfs_stats *stats, int idx, long amount) argument 57 LASSERTF(0 <= idx && idx < stats->ls_num, 58 "idx %d, ls_num %hu\n", idx, stats->ls_num); 66 header = &stats->ls_cnt_header[idx]; 67 percpu_cntr = lprocfs_stats_counter_get(stats, smp_id, idx); 98 void lprocfs_counter_sub(struct lprocfs_stats *stats, int idx, long amount) argument 108 LASSERTF(0 <= idx && idx < stat [all...] |
/drivers/media/pci/cx18/ |
H A D | cx18-i2c.h | 24 int cx18_i2c_register(struct cx18 *cx, unsigned idx);
|
/drivers/net/ethernet/chelsio/cxgb/ |
H A D | fpga_defs.h | 214 #define MAC_REG_ADDR(idx, reg) (MAC_REG_BASE + (idx) * 128 + (reg)) 216 #define MAC_REG_IDLO(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_LO) 217 #define MAC_REG_IDHI(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_HI) 218 #define MAC_REG_CSR(idx) MAC_REG_ADDR(idx, A_GMAC_CSR) 219 #define MAC_REG_IFS(idx) MAC_REG_ADDR(idx, A_GMAC_IF [all...] |
/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-encoder.c | 44 unsigned int idx,addr; local 65 for (idx = 0; idx < chunkCnt; idx++) { 66 addr = idx + offs; 70 PVR2_DECOMPOSE_LE(hdw->cmd_buffer, bAddr,data[idx]); 90 unsigned int idx; local 124 for (idx = 0; idx < chunkCnt; idx 151 unsigned int idx; local 322 unsigned int idx; local [all...] |
H A D | pvrusb2-ioread.c | 55 unsigned int idx; local 60 for (idx = 0; idx < BUFFER_COUNT; idx++) { 61 cp->buffer_storage[idx] = kmalloc(BUFFER_SIZE,GFP_KERNEL); 62 if (!(cp->buffer_storage[idx])) break; 65 if (idx < BUFFER_COUNT) { 67 for (idx = 0; idx < BUFFER_COUNT; idx 78 unsigned int idx; local 205 unsigned int idx; local 311 unsigned int idx; local [all...] |
H A D | pvrusb2-std.c | 123 unsigned int idx; local 125 for (idx = 0; idx < arrSize; idx++) { 126 p = arrPtr + idx; 283 unsigned int idx; local 284 for (idx = 0; idx < ARRAY_SIZE(generic_standards); idx++) { 285 if (generic_standards[idx] 295 int idx; local 323 unsigned int idx,bcnt,idx2; local [all...] |
/drivers/media/dvb-core/ |
H A D | dvb_ringbuffer.c | 208 ssize_t dvb_ringbuffer_pkt_read_user(struct dvb_ringbuffer *rbuf, size_t idx, argument 215 pktlen = rbuf->data[idx] << 8; 216 pktlen |= rbuf->data[(idx + 1) % rbuf->size]; 220 idx = (idx + DVB_RINGBUFFER_PKTHDRSIZE + offset) % rbuf->size; 222 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; 224 if (copy_to_user(buf, rbuf->data+idx, split)) 228 idx = 0; 230 if (copy_to_user(buf, rbuf->data+idx, tod 236 dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, int offset, u8* buf, size_t len) argument 261 dvb_ringbuffer_pkt_dispose(struct dvb_ringbuffer *rbuf, size_t idx) argument 280 dvb_ringbuffer_pkt_next(struct dvb_ringbuffer *rbuf, size_t idx, size_t* pktlen) argument [all...] |
/drivers/media/pci/pt3/ |
H A D | pt3_dma.c | 25 static u32 get_dma_base(int idx) argument 29 i = (idx == 1 || idx == 2) ? 3 - idx : idx; 70 static u8 *next_unit(struct pt3_adapter *adap, int *idx, int *ofs) argument 75 (*idx)++; 76 if (*idx == adap->num_bufs) 77 *idx = 0; 79 return &adap->buffer[*idx] 84 int idx, ofs; local 116 int idx, ofs; local 159 int idx, ofs; local [all...] |
/drivers/gpu/drm/nouveau/core/include/subdev/bios/ |
H A D | M0209.h | 16 u32 nvbios_M0209Ee(struct nouveau_bios *, int idx, 18 u32 nvbios_M0209Ep(struct nouveau_bios *, int idx, 26 u32 nvbios_M0209Se(struct nouveau_bios *, int ent, int idx, u8 *ver, u8 *hdr); 27 u32 nvbios_M0209Sp(struct nouveau_bios *, int ent, int idx, u8 *ver, u8 *hdr,
|
H A D | P0260.h | 11 u32 nvbios_P0260Ee(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr); 12 u32 nvbios_P0260Ep(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr, 19 u32 nvbios_P0260Xe(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr); 20 u32 nvbios_P0260Xp(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr,
|
H A D | cstep.h | 12 u16 nvbios_cstepEe(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr); 13 u16 nvbios_cstepEp(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr, 24 u16 nvbios_cstepXe(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr); 25 u16 nvbios_cstepXp(struct nouveau_bios *, int idx, u8 *ver, u8 *hdr,
|
/drivers/gpu/drm/nouveau/core/subdev/bios/ |
H A D | P0260.c | 60 nvbios_P0260Ee(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len) argument 64 if (data && idx < cnt) 65 return data + hdr + (idx * *len); 70 nvbios_P0260Ep(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len, argument 73 u32 data = nvbios_P0260Ee(bios, idx, ver, len); 86 nvbios_P0260Xe(struct nouveau_bios *bios, int idx, u8 *ver, u8 *xsz) argument 90 if (data && idx < xnr) 91 return data + hdr + (cnt * len) + (idx * *xsz); 96 nvbios_P0260Xp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, argument 99 u32 data = nvbios_P0260Xe(bios, idx, ve [all...] |
/drivers/input/misc/ |
H A D | ad714x.c | 214 static void ad714x_button_state_machine(struct ad714x_chip *ad714x, int idx) argument 216 struct ad714x_button_plat *hw = &ad714x->hw->button[idx]; 217 struct ad714x_button_drv *sw = &ad714x->sw->button[idx]; 223 dev_dbg(ad714x->dev, "button %d touched\n", idx); 233 dev_dbg(ad714x->dev, "button %d released\n", idx); 249 static void ad714x_slider_cal_sensor_val(struct ad714x_chip *ad714x, int idx) argument 251 struct ad714x_slider_plat *hw = &ad714x->hw->slider[idx]; 267 static void ad714x_slider_cal_highest_stage(struct ad714x_chip *ad714x, int idx) argument 269 struct ad714x_slider_plat *hw = &ad714x->hw->slider[idx]; 270 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; 292 ad714x_slider_cal_abs_pos(struct ad714x_chip *ad714x, int idx) argument 314 ad714x_slider_cal_flt_pos(struct ad714x_chip *ad714x, int idx) argument 325 ad714x_slider_use_com_int(struct ad714x_chip *ad714x, int idx) argument 332 ad714x_slider_use_thr_int(struct ad714x_chip *ad714x, int idx) argument 339 ad714x_slider_state_machine(struct ad714x_chip *ad714x, int idx) argument 408 ad714x_wheel_cal_highest_stage(struct ad714x_chip *ad714x, int idx) argument 421 ad714x_wheel_cal_sensor_val(struct ad714x_chip *ad714x, int idx) argument 450 ad714x_wheel_cal_abs_pos(struct ad714x_chip *ad714x, int idx) argument 481 ad714x_wheel_cal_flt_pos(struct ad714x_chip *ad714x, int idx) argument 497 ad714x_wheel_use_com_int(struct ad714x_chip *ad714x, int idx) argument 504 ad714x_wheel_use_thr_int(struct ad714x_chip *ad714x, int idx) argument 511 ad714x_wheel_state_machine(struct ad714x_chip *ad714x, int idx) argument 575 touchpad_cal_sensor_val(struct ad714x_chip *ad714x, int idx) argument 595 touchpad_cal_highest_stage(struct ad714x_chip *ad714x, int idx) argument 616 touchpad_check_second_peak(struct ad714x_chip *ad714x, int idx) argument 655 touchpad_cal_abs_pos(struct ad714x_chip *ad714x, int idx) argument 669 touchpad_cal_flt_pos(struct ad714x_chip *ad714x, int idx) argument 700 touchpad_check_endpoint(struct ad714x_chip *ad714x, int idx) argument 777 touchpad_use_com_int(struct ad714x_chip *ad714x, int idx) argument 784 touchpad_use_thr_int(struct ad714x_chip *ad714x, int idx) argument 792 ad714x_touchpad_state_machine(struct ad714x_chip *ad714x, int idx) argument [all...] |
/drivers/cpuidle/ |
H A D | cpuidle-arm64.c | 31 * idx: state index 37 struct cpuidle_driver *drv, int idx) 41 if (!idx) { 43 return idx; 53 ret = cpu_suspend(idx); 58 return ret ? -1 : idx; 36 arm64_enter_idle_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, int idx) argument
|
/drivers/net/ethernet/ibm/emac/ |
H A D | rgmii.c | 39 #define RGMII_FER_MASK(idx) (0x7 << ((idx) * 4)) 40 #define RGMII_FER_RTBI(idx) (0x4 << ((idx) * 4)) 41 #define RGMII_FER_RGMII(idx) (0x5 << ((idx) * 4)) 42 #define RGMII_FER_TBI(idx) (0x6 << ((idx) * 4)) 43 #define RGMII_FER_GMII(idx) (0x7 << ((idx) * [all...] |
/drivers/gpu/drm/ |
H A D | drm_dp_mst_topology.c | 145 int idx = 0; local 148 buf[idx++] = ((hdr->lct & 0xf) << 4) | (hdr->lcr & 0xf); 150 buf[idx++] = hdr->rad[i]; 151 buf[idx++] = (hdr->broadcast << 7) | (hdr->path_msg << 6) | 153 buf[idx++] = (hdr->somt << 7) | (hdr->eomt << 6) | (hdr->seqno << 4); 155 crc4 = drm_dp_msg_header_crc4(buf, (idx * 2) - 1); 156 buf[idx - 1] |= (crc4 & 0xf); 158 *len = idx; 167 u8 idx; local 183 idx 201 int idx = 0; local 309 int idx = 0; local 369 int idx = 1; local 421 int idx = 1; local 440 int idx = 1; local 454 int idx = 1; local 473 int idx = 1; local 495 int idx = 1; local 517 int idx = 1; local 570 int idx = 1; local 597 int idx = 1; local 958 int idx = lct / 2; local 1306 int len, space, idx, tosend; local [all...] |
/drivers/clk/samsung/ |
H A D | clk.c | 101 unsigned int idx, ret; local 108 for (idx = 0; idx < nr_clk; idx++, list++) { 111 idx); 134 unsigned int idx, ret; local 136 for (idx = 0; idx < nr_clk; idx++, list++) { 163 unsigned int idx; local 184 unsigned int idx, ret; local 216 unsigned int idx, ret; local 255 unsigned int idx, ret; local [all...] |