/drivers/s390/char/ |
D | raw3270.c | 93 static void __raw3270_disconnect(struct raw3270 *rp); 109 static inline int raw3270_state_ready(struct raw3270 *rp) in raw3270_state_ready() argument 111 return rp->state == RAW3270_STATE_READY; in raw3270_state_ready() 114 static inline int raw3270_state_final(struct raw3270 *rp) in raw3270_state_final() argument 116 return rp->state == RAW3270_STATE_INIT || in raw3270_state_final() 117 rp->state == RAW3270_STATE_READY; in raw3270_state_final() 121 raw3270_buffer_address(struct raw3270 *rp, char *cp, unsigned short addr) in raw3270_buffer_address() argument 123 if (test_bit(RAW3270_FLAGS_14BITADDR, &rp->flags)) { in raw3270_buffer_address() 238 __raw3270_start(struct raw3270 *rp, struct raw3270_view *view, in __raw3270_start() argument 243 if (list_empty(&rp->req_queue) && in __raw3270_start() [all …]
|
/drivers/usb/mon/ |
D | mon_bin.c | 201 static inline struct mon_bin_hdr *MON_OFF2HDR(const struct mon_reader_bin *rp, in MON_OFF2HDR() argument 205 (rp->b_vec[offset / CHUNK_SIZE].ptr + offset % CHUNK_SIZE); in MON_OFF2HDR() 208 #define MON_RING_EMPTY(rp) ((rp)->b_cnt == 0) argument 218 static void mon_buff_area_fill(const struct mon_reader_bin *rp, 220 static int mon_bin_wait_event(struct file *file, struct mon_reader_bin *rp); 293 static unsigned int mon_buff_area_alloc(struct mon_reader_bin *rp, in mon_buff_area_alloc() argument 299 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc() 301 offset = rp->b_in; in mon_buff_area_alloc() 302 rp->b_cnt += size; in mon_buff_area_alloc() 303 if ((rp->b_in += size) >= rp->b_size) in mon_buff_area_alloc() [all …]
|
D | mon_text.c | 104 mon_text_read_wait(struct mon_reader_text *rp, struct file *file); 105 static void mon_text_read_head_t(struct mon_reader_text *rp, 107 static void mon_text_read_head_u(struct mon_reader_text *rp, 109 static void mon_text_read_statset(struct mon_reader_text *rp, 111 static void mon_text_read_intstat(struct mon_reader_text *rp, 113 static void mon_text_read_isostat(struct mon_reader_text *rp, 115 static void mon_text_read_isodesc(struct mon_reader_text *rp, 117 static void mon_text_read_data(struct mon_reader_text *rp, 191 static void mon_text_event(struct mon_reader_text *rp, struct urb *urb, in mon_text_event() argument 202 if (rp->nevents >= EVENT_MAX || in mon_text_event() [all …]
|
/drivers/net/ethernet/via/ |
D | via-rhine.c | 527 static void rhine_wait_bit(struct rhine_private *rp, u8 reg, u8 mask, bool low) in rhine_wait_bit() argument 529 void __iomem *ioaddr = rp->base; in rhine_wait_bit() 540 netif_dbg(rp, hw, rp->dev, "%s bit wait (%02x/%02x) cycle " in rhine_wait_bit() 545 static void rhine_wait_bit_high(struct rhine_private *rp, u8 reg, u8 mask) in rhine_wait_bit_high() argument 547 rhine_wait_bit(rp, reg, mask, false); in rhine_wait_bit_high() 550 static void rhine_wait_bit_low(struct rhine_private *rp, u8 reg, u8 mask) in rhine_wait_bit_low() argument 552 rhine_wait_bit(rp, reg, mask, true); in rhine_wait_bit_low() 555 static u32 rhine_get_events(struct rhine_private *rp) in rhine_get_events() argument 557 void __iomem *ioaddr = rp->base; in rhine_get_events() 562 if (rp->quirks & rqStatusWBRace) in rhine_get_events() [all …]
|
/drivers/powercap/ |
D | intel_rapl.c | 174 struct rapl_package *rp; member 204 int (*check_unit)(struct rapl_package *rp, int cpu); 206 u64 (*compute_time_window)(struct rapl_package *rp, u64 val, 240 static void rapl_init_domains(struct rapl_package *rp); 250 static void package_power_limit_irq_save(struct rapl_package *rp); 268 struct rapl_package *rp; in find_package_by_id() local 270 list_for_each_entry(rp, &rapl_packages, plist) { in find_package_by_id() 271 if (rp->id == id) in find_package_by_id() 272 return rp; in find_package_by_id() 323 struct rapl_package *rp = rd->rp; in release_zone() local [all …]
|
/drivers/pwm/ |
D | pwm-rcar.c | 49 static void rcar_pwm_write(struct rcar_pwm_chip *rp, u32 data, in rcar_pwm_write() argument 52 writel(data, rp->base + offset); in rcar_pwm_write() 55 static u32 rcar_pwm_read(struct rcar_pwm_chip *rp, unsigned int offset) in rcar_pwm_read() argument 57 return readl(rp->base + offset); in rcar_pwm_read() 60 static void rcar_pwm_update(struct rcar_pwm_chip *rp, u32 mask, u32 data, in rcar_pwm_update() argument 65 value = rcar_pwm_read(rp, offset); in rcar_pwm_update() 68 rcar_pwm_write(rp, value, offset); in rcar_pwm_update() 71 static int rcar_pwm_get_clock_division(struct rcar_pwm_chip *rp, int period_ns) in rcar_pwm_get_clock_division() argument 73 unsigned long clk_rate = clk_get_rate(rp->clk); in rcar_pwm_get_clock_division() 91 static void rcar_pwm_set_clock_control(struct rcar_pwm_chip *rp, in rcar_pwm_set_clock_control() argument [all …]
|
/drivers/media/pci/tw68/ |
D | tw68-risc.c | 41 static __le32 *tw68_risc_field(__le32 *rp, struct scatterlist *sglist, in tw68_risc_field() argument 50 *(rp++) = cpu_to_le32(RISC_JUMP); in tw68_risc_field() 51 *(rp++) = 0; in tw68_risc_field() 56 *(rp++) = cpu_to_le32(RISC_SYNCO); in tw68_risc_field() 58 *(rp++) = cpu_to_le32(RISC_SYNCE); in tw68_risc_field() 59 *(rp++) = 0; in tw68_risc_field() 71 *(rp++) = cpu_to_le32(RISC_LINESTART | in tw68_risc_field() 73 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field() 85 *(rp++) = cpu_to_le32(RISC_LINESTART | in tw68_risc_field() 88 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in tw68_risc_field() [all …]
|
/drivers/scsi/bfa/ |
D | bfa_svc.c | 252 static bfa_boolean_t bfa_rport_send_fwcreate(struct bfa_rport_s *rp); 253 static bfa_boolean_t bfa_rport_send_fwdelete(struct bfa_rport_s *rp); 254 static bfa_boolean_t bfa_rport_send_fwspeed(struct bfa_rport_s *rp); 263 static void bfa_rport_sm_uninit(struct bfa_rport_s *rp, 265 static void bfa_rport_sm_created(struct bfa_rport_s *rp, 267 static void bfa_rport_sm_fwcreate(struct bfa_rport_s *rp, 269 static void bfa_rport_sm_online(struct bfa_rport_s *rp, 271 static void bfa_rport_sm_fwdelete(struct bfa_rport_s *rp, 273 static void bfa_rport_sm_offline(struct bfa_rport_s *rp, 275 static void bfa_rport_sm_deleting(struct bfa_rport_s *rp, [all …]
|
/drivers/misc/sgi-xp/ |
D | xpc_partition.c | 139 struct xpc_rsvd_page *rp; in xpc_setup_rsvd_page() local 152 rp = (struct xpc_rsvd_page *)__va(xp_socket_pa(rp_pa)); in xpc_setup_rsvd_page() 154 if (rp->SAL_version < 3) { in xpc_setup_rsvd_page() 156 rp->SAL_partid &= 0xff; in xpc_setup_rsvd_page() 158 BUG_ON(rp->SAL_partid != xp_partition_id); in xpc_setup_rsvd_page() 160 if (rp->SAL_partid < 0 || rp->SAL_partid >= xp_max_npartitions) { in xpc_setup_rsvd_page() 162 "supported range (< 0 || >= %d)\n", rp->SAL_partid, in xpc_setup_rsvd_page() 167 rp->version = XPC_RP_VERSION; in xpc_setup_rsvd_page() 168 rp->max_npartitions = xp_max_npartitions; in xpc_setup_rsvd_page() 171 if (rp->SAL_version == 1) { in xpc_setup_rsvd_page() [all …]
|
/drivers/media/pci/cx25821/ |
D | cx25821-video-upstream.c | 96 __le32 *rp, unsigned int offset, in cx25821_update_riscprogram() argument 105 *(rp++) = cpu_to_le32(RISC_RESYNC | sync_line); in cx25821_update_riscprogram() 109 *(rp++) = cpu_to_le32(RISC_NOOP); in cx25821_update_riscprogram() 114 *(rp++) = cpu_to_le32(RISC_READ | RISC_SOL | RISC_EOL | bpl); in cx25821_update_riscprogram() 115 *(rp++) = cpu_to_le32(out->_data_buf_phys_addr + offset); in cx25821_update_riscprogram() 116 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx25821_update_riscprogram() 124 return rp; in cx25821_update_riscprogram() 127 static __le32 *cx25821_risc_field_upstream(struct cx25821_channel *chan, __le32 *rp, in cx25821_risc_field_upstream() argument 140 *(rp++) = cpu_to_le32(RISC_RESYNC | sync_line); in cx25821_risc_field_upstream() 144 *(rp++) = cpu_to_le32(RISC_NOOP); in cx25821_risc_field_upstream() [all …]
|
D | cx25821-audio-upstream.c | 103 __le32 *rp, in cx25821_risc_field_upstream_audio() argument 115 *(rp++) = cpu_to_le32(RISC_READ | RISC_SOL | RISC_EOL | bpl); in cx25821_risc_field_upstream_audio() 116 *(rp++) = cpu_to_le32(databuf_phys_addr + offset); in cx25821_risc_field_upstream_audio() 117 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx25821_risc_field_upstream_audio() 124 *(rp++) = RISC_WRITECR; in cx25821_risc_field_upstream_audio() 125 *(rp++) = sram_ch->dma_ctl; in cx25821_risc_field_upstream_audio() 126 *(rp++) = sram_ch->fld_aud_fifo_en; in cx25821_risc_field_upstream_audio() 127 *(rp++) = 0x00000020; in cx25821_risc_field_upstream_audio() 133 return rp; in cx25821_risc_field_upstream_audio() 140 __le32 *rp; in cx25821_risc_buffer_upstream_audio() local [all …]
|
D | cx25821-core.c | 1006 static __le32 *cx25821_risc_field(__le32 * rp, struct scatterlist *sglist, in cx25821_risc_field() argument 1015 *(rp++) = cpu_to_le32(RISC_JUMP); in cx25821_risc_field() 1016 *(rp++) = cpu_to_le32(0); in cx25821_risc_field() 1017 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx25821_risc_field() 1022 *(rp++) = cpu_to_le32(RISC_RESYNC | sync_line); in cx25821_risc_field() 1033 *(rp++) = cpu_to_le32(RISC_WRITE | RISC_SOL | RISC_EOL | in cx25821_risc_field() 1035 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field() 1036 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx25821_risc_field() 1041 *(rp++) = cpu_to_le32(RISC_WRITE | RISC_SOL | in cx25821_risc_field() 1043 *(rp++) = cpu_to_le32(sg_dma_address(sg) + offset); in cx25821_risc_field() [all …]
|
/drivers/net/ethernet/sun/ |
D | niu.c | 3287 static unsigned int niu_hash_rxaddr(struct rx_ring_info *rp, u64 a) in niu_hash_rxaddr() argument 3295 static struct page *niu_find_rxpage(struct rx_ring_info *rp, u64 addr, in niu_find_rxpage() argument 3298 unsigned int h = niu_hash_rxaddr(rp, addr); in niu_find_rxpage() 3302 pp = &rp->rxhash[h]; in niu_find_rxpage() 3315 static void niu_hash_page(struct rx_ring_info *rp, struct page *page, u64 base) in niu_hash_page() argument 3317 unsigned int h = niu_hash_rxaddr(rp, base); in niu_hash_page() 3320 page->mapping = (struct address_space *) rp->rxhash[h]; in niu_hash_page() 3321 rp->rxhash[h] = page; in niu_hash_page() 3324 static int niu_rbr_add_page(struct niu *np, struct rx_ring_info *rp, in niu_rbr_add_page() argument 3342 niu_hash_page(rp, page, addr); in niu_rbr_add_page() [all …]
|
/drivers/isdn/i4l/ |
D | isdn_ttyfax.c | 54 char *rp; in isdn_tty_fax_modem_result() local 93 rp = &f->r_resolution; in isdn_tty_fax_modem_result() 95 sprintf(rss, "%c%s", rp[i] + 48, in isdn_tty_fax_modem_result() 112 rp = &f->r_resolution; in isdn_tty_fax_modem_result() 114 sprintf(rss, "%c%s", rp[i] + 48, in isdn_tty_fax_modem_result() 704 char *rp = &f->resolution; in isdn_tty_cmd_FCLASS2() local 713 sprintf(rss, "%c%s", rp[i] + 48, in isdn_tty_cmd_FCLASS2() 730 rp[i] = *p[0] - 48; in isdn_tty_cmd_FCLASS2() 739 rp[0], rp[1], rp[2], rp[3], rp[4], rp[5], rp[6], rp[7]); in isdn_tty_cmd_FCLASS2() 750 char *rp = &f->resolution; in isdn_tty_cmd_FCLASS2() local [all …]
|
/drivers/net/ethernet/8390/ |
D | mcf8390.c | 64 NE2000_BYTE *rp; in ei_outb() local 66 rp = (NE2000_BYTE *) NE_PTR(addr); in ei_outb() 67 *rp = RSWAP(val); in ei_outb() 73 NE2000_BYTE *rp, val; in ei_inb() local 75 rp = (NE2000_BYTE *) NE_PTR(addr); in ei_inb() 76 val = *rp; in ei_inb() 82 NE2000_BYTE *rp, val; in ei_insb() local 86 rp = (NE2000_BYTE *) NE_DATA_PTR(addr); in ei_insb() 88 val = *rp; in ei_insb() 95 volatile u16 *rp; in ei_insw() local [all …]
|
/drivers/nubus/ |
D | nubus.c | 725 unsigned char* rp; in nubus_find_rom_dir() local 731 rp = board->fblock; in nubus_find_rom_dir() 732 nubus_rewind(&rp, 4, board->lanes); in nubus_find_rom_dir() 733 if (nubus_get_rom(&rp, 4, board->lanes) != NUBUS_TEST_PATTERN) { in nubus_find_rom_dir() 804 unsigned char *rp; in nubus_add_board() local 810 rp = nubus_rom_addr(slot); in nubus_add_board() 811 nubus_rewind(&rp, FORMAT_BLOCK_SIZE, bytelanes); in nubus_add_board() 816 board->fblock = rp; in nubus_add_board() 822 slot, rp); in nubus_add_board() 826 foo = nubus_get_rom(&rp, 2, bytelanes); in nubus_add_board() [all …]
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | debugfs.c | 101 struct mt7601u_rate_power *rp = &dev->ee->power_rate_table; in mt7601u_eeprom_param_read() local 116 rp->cck[i].raw, rp->cck[i].bw20, rp->cck[i].bw40); in mt7601u_eeprom_param_read() 119 rp->ofdm[i].raw, rp->ofdm[i].bw20, rp->ofdm[i].bw40); in mt7601u_eeprom_param_read() 122 rp->ht[i].raw, rp->ht[i].bw20, rp->ht[i].bw40); in mt7601u_eeprom_param_read()
|
/drivers/isdn/hysdn/ |
D | hycapi.c | 41 capi_register_params rp; member 152 capi_register_params *rp) in hycapi_register_internal() argument 166 MessageBufferSize = rp->level3cnt * rp->datablkcnt * rp->datablklen; in hycapi_register_internal() 180 memcpy(skb_put(skb, sizeof(__u16)), &(rp->level3cnt), sizeof(__u16)); in hycapi_register_internal() 181 memcpy(skb_put(skb, sizeof(__u16)), &(rp->datablkcnt), sizeof(__u16)); in hycapi_register_internal() 182 memcpy(skb_put(skb, sizeof(__u16)), &(rp->datablklen), sizeof(__u16)); in hycapi_register_internal() 206 &hycapi_applications[i].rp); in hycapi_restart_internal() 224 capi_register_params *rp) in hycapi_register_appl() argument 237 MaxBDataBlocks = rp->datablkcnt > CAPI_MAXDATAWINDOW ? CAPI_MAXDATAWINDOW : rp->datablkcnt; in hycapi_register_appl() 238 rp->datablkcnt = MaxBDataBlocks; in hycapi_register_appl() [all …]
|
/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 55 __le32 *rp; in bttv_risc_packed() local 70 rp = risc->cpu; in bttv_risc_packed() 71 *(rp++) = cpu_to_le32(BT848_RISC_SYNC|BT848_FIFO_STATUS_FM1); in bttv_risc_packed() 72 *(rp++) = cpu_to_le32(0); in bttv_risc_packed() 75 *(rp++) = cpu_to_le32(BT848_RISC_SKIP | BT848_RISC_SOL | in bttv_risc_packed() 91 *(rp++)=cpu_to_le32(BT848_RISC_WRITE|BT848_RISC_SOL| in bttv_risc_packed() 93 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); in bttv_risc_packed() 98 *(rp++)=cpu_to_le32(BT848_RISC_WRITE|BT848_RISC_SOL| in bttv_risc_packed() 100 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); in bttv_risc_packed() 105 *(rp++)=cpu_to_le32(BT848_RISC_WRITE| in bttv_risc_packed() [all …]
|
/drivers/media/pci/cx88/ |
D | cx88-core.c | 76 static __le32* cx88_risc_field(__le32 *rp, struct scatterlist *sglist, in cx88_risc_field() argument 85 (*rp++) = cpu_to_le32(RISC_JUMP); in cx88_risc_field() 86 (*rp++) = 0; in cx88_risc_field() 91 *(rp++) = cpu_to_le32(RISC_RESYNC | sync_line); in cx88_risc_field() 106 *(rp++)=cpu_to_le32(RISC_WRITE|sol|RISC_EOL|bpl); in cx88_risc_field() 107 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); in cx88_risc_field() 112 *(rp++)=cpu_to_le32(RISC_WRITE|sol| in cx88_risc_field() 114 *(rp++)=cpu_to_le32(sg_dma_address(sg)+offset); in cx88_risc_field() 119 *(rp++)=cpu_to_le32(RISC_WRITE| in cx88_risc_field() 121 *(rp++)=cpu_to_le32(sg_dma_address(sg)); in cx88_risc_field() [all …]
|
/drivers/platform/olpc/ |
D | olpc-ec.c | 216 char *rp; in ec_dbgfs_cmd_read() local 220 rp = respbuf; in ec_dbgfs_cmd_read() 221 rp += sprintf(rp, "%02x", ec_dbgfs_resp[0]); in ec_dbgfs_cmd_read() 223 rp += sprintf(rp, ", %02x", ec_dbgfs_resp[i]); in ec_dbgfs_cmd_read() 225 rp += sprintf(rp, "\n"); in ec_dbgfs_cmd_read() 227 r = rp - respbuf; in ec_dbgfs_cmd_read()
|
/drivers/media/pci/cx23885/ |
D | cx23885-core.c | 1069 static __le32 *cx23885_risc_field(__le32 *rp, struct scatterlist *sglist, in cx23885_risc_field() argument 1079 *(rp++) = cpu_to_le32(RISC_JUMP); in cx23885_risc_field() 1080 *(rp++) = cpu_to_le32(0); in cx23885_risc_field() 1081 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx23885_risc_field() 1086 *(rp++) = cpu_to_le32(RISC_RESYNC | sync_line); in cx23885_risc_field() 1103 *(rp++) = cpu_to_le32(RISC_WRITE|sol|RISC_EOL|bpl); in cx23885_risc_field() 1104 *(rp++) = cpu_to_le32(sg_dma_address(sg)+offset); in cx23885_risc_field() 1105 *(rp++) = cpu_to_le32(0); /* bits 63-32 */ in cx23885_risc_field() 1110 *(rp++) = cpu_to_le32(RISC_WRITE|sol| in cx23885_risc_field() 1112 *(rp++) = cpu_to_le32(sg_dma_address(sg)+offset); in cx23885_risc_field() [all …]
|
/drivers/scsi/libfc/ |
D | fc_disc.c | 88 struct fc_els_rscn *rp; in fc_disc_recv_rscn_req() local 103 rp = fc_frame_payload_get(fp, sizeof(*rp)); in fc_disc_recv_rscn_req() 104 if (!rp) in fc_disc_recv_rscn_req() 107 if (rp->rscn_page_len != sizeof(*pp)) in fc_disc_recv_rscn_req() 110 len = ntohs(rp->rscn_plen); in fc_disc_recv_rscn_req() 111 if (len < sizeof(*rp)) in fc_disc_recv_rscn_req() 114 rp = fc_frame_payload_get(fp, len); in fc_disc_recv_rscn_req() 115 if (!rp) in fc_disc_recv_rscn_req() 118 len -= sizeof(*rp); in fc_disc_recv_rscn_req() 122 for (pp = (void *)(rp + 1); len > 0; len -= sizeof(*pp), pp++) { in fc_disc_recv_rscn_req()
|
/drivers/media/pci/saa7164/ |
D | saa7164-core.c | 371 u32 wp, mcb, rp, cnt = 0; in saa7164_work_enchandler() local 413 rp = mcb; in saa7164_work_enchandler() 415 rp = (port->last_svc_rp + 1) % 8; in saa7164_work_enchandler() 417 if (rp > (port->hwcfg.buffercount - 1)) { in saa7164_work_enchandler() 418 printk(KERN_ERR "%s() illegal rp count %d\n", __func__, rp); in saa7164_work_enchandler() 422 saa7164_work_enchandler_helper(port, rp); in saa7164_work_enchandler() 423 port->last_svc_rp = rp; in saa7164_work_enchandler() 426 if (rp == mcb) in saa7164_work_enchandler() 448 u32 wp, mcb, rp, cnt = 0; in saa7164_work_vbihandler() local 489 rp = mcb; in saa7164_work_vbihandler() [all …]
|
/drivers/net/appletalk/ |
D | ipddp.c | 271 struct ipddp_route rcp, rcp2, *rp; in ipddp_ioctl() local 286 rp = __ipddp_find_route(&rcp); in ipddp_ioctl() 287 if (rp) in ipddp_ioctl() 288 memcpy(&rcp2, rp, sizeof(rcp2)); in ipddp_ioctl() 291 if (rp) { in ipddp_ioctl()
|