Searched refs:hp (Results 1 - 25 of 37) sorted by relevance

12

/drivers/tty/hvc/
H A Dhvc_irq.c23 int notifier_add_irq(struct hvc_struct *hp, int irq) argument
28 hp->irq_requested = 0;
32 "hvc_console", hp);
34 hp->irq_requested = 1;
38 void notifier_del_irq(struct hvc_struct *hp, int irq) argument
40 if (!hp->irq_requested)
42 free_irq(irq, hp);
43 hp->irq_requested = 0;
46 void notifier_hangup_irq(struct hvc_struct *hp, int irq) argument
48 notifier_del_irq(hp, ir
[all...]
H A Dhvsi.c101 static int (*hvsi_wait)(struct hvsi_struct *hp, int state);
113 static inline int is_console(struct hvsi_struct *hp) argument
115 return hp->flags & HVSI_CONSOLE;
118 static inline int is_open(struct hvsi_struct *hp) argument
121 return (hp->state == HVSI_OPEN)
122 || (hp->state == HVSI_WAIT_FOR_MCTRL_RESPONSE);
125 static inline void print_state(struct hvsi_struct *hp) argument
136 const char *name = (hp->state < ARRAY_SIZE(state_names))
137 ? state_names[hp->state] : "UNKNOWN";
139 pr_debug("hvsi%i: state = %s\n", hp
143 __set_state(struct hvsi_struct *hp, int state) argument
150 set_state(struct hvsi_struct *hp, int state) argument
170 got_packet(const struct hvsi_struct *hp, uint8_t *packet) argument
182 compact_inbuf(struct hvsi_struct *hp, uint8_t *read_to) argument
230 hvsi_read(struct hvsi_struct *hp, char *buf, int count) argument
239 hvsi_recv_control(struct hvsi_struct *hp, uint8_t *packet, struct tty_struct **to_hangup, struct hvsi_struct **to_handshake) argument
269 hvsi_recv_response(struct hvsi_struct *hp, uint8_t *packet) argument
293 hvsi_version_respond(struct hvsi_struct *hp, uint16_t query_seqno) argument
318 hvsi_recv_query(struct hvsi_struct *hp, uint8_t *packet) argument
334 hvsi_insert_chars(struct hvsi_struct *hp, const char *buf, int len) argument
363 hvsi_recv_data(struct hvsi_struct *hp, const uint8_t *packet) argument
402 hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct **flip, struct tty_struct **hangup, struct hvsi_struct **handshake) argument
481 hvsi_send_overflow(struct hvsi_struct *hp) argument
496 struct hvsi_struct *hp = (struct hvsi_struct *)arg; local
550 poll_for_state(struct hvsi_struct *hp, int state) argument
567 wait_for_state(struct hvsi_struct *hp, int state) argument
577 hvsi_query(struct hvsi_struct *hp, uint16_t verb) argument
600 hvsi_get_mctrl(struct hvsi_struct *hp) argument
620 hvsi_set_mctrl(struct hvsi_struct *hp, uint16_t mctrl) argument
646 hvsi_drain_input(struct hvsi_struct *hp) argument
656 hvsi_handshake(struct hvsi_struct *hp) argument
685 struct hvsi_struct *hp = local
701 hvsi_put_chars(struct hvsi_struct *hp, const char *buf, int count) argument
721 hvsi_close_protocol(struct hvsi_struct *hp) argument
738 struct hvsi_struct *hp; local
787 hvsi_flush_output(struct hvsi_struct *hp) argument
804 struct hvsi_struct *hp = tty->driver_data; local
856 struct hvsi_struct *hp = tty->driver_data; local
871 hvsi_push(struct hvsi_struct *hp) argument
892 struct hvsi_struct *hp = local
936 struct hvsi_struct *hp = tty->driver_data; local
943 struct hvsi_struct *hp = tty->driver_data; local
951 struct hvsi_struct *hp = tty->driver_data; local
1009 struct hvsi_struct *hp = tty->driver_data; local
1018 struct hvsi_struct *hp = tty->driver_data; local
1039 struct hvsi_struct *hp = tty->driver_data; local
1048 struct hvsi_struct *hp = tty->driver_data; local
1105 struct hvsi_struct *hp = &hvsi_ports[i]; local
1129 struct hvsi_struct *hp = &hvsi_ports[console->index]; local
1170 struct hvsi_struct *hp; local
1216 struct hvsi_struct *hp; local
[all...]
H A Dhvc_console.c102 struct hvc_struct *hp; local
107 list_for_each_entry(hp, &hvc_structs, next) {
108 spin_lock_irqsave(&hp->lock, flags);
109 if (hp->index == index) {
110 kref_get(&hp->kref);
111 spin_unlock_irqrestore(&hp->lock, flags);
113 return hp;
115 spin_unlock_irqrestore(&hp->lock, flags);
117 hp = NULL;
120 return hp;
234 struct hvc_struct *hp = container_of(kref, struct hvc_struct, kref); local
256 struct hvc_struct *hp; local
308 struct hvc_struct *hp; local
357 struct hvc_struct *hp; local
405 struct hvc_struct *hp = tty->driver_data; local
448 hvc_push(struct hvc_struct *hp) argument
473 struct hvc_struct *hp = tty->driver_data; local
522 struct hvc_struct *hp; local
549 struct hvc_struct *hp = tty->driver_data; local
559 struct hvc_struct *hp = tty->driver_data; local
581 hvc_poll(struct hvc_struct *hp) argument
701 __hvc_resize(struct hvc_struct *hp, struct winsize ws) argument
716 struct hvc_struct *hp; local
753 struct hvc_struct *hp = tty->driver_data; local
763 struct hvc_struct *hp = tty->driver_data; local
779 struct hvc_struct *hp = tty->driver_data; local
794 struct hvc_struct *hp = tty->driver_data; local
824 struct hvc_struct *hp; local
873 hvc_remove(struct hvc_struct *hp) argument
[all...]
H A Dhvc_console.h73 int (*notifier_add)(struct hvc_struct *hp, int irq);
74 void (*notifier_del)(struct hvc_struct *hp, int irq);
75 void (*notifier_hangup)(struct hvc_struct *hp, int irq);
78 int (*tiocmget)(struct hvc_struct *hp);
79 int (*tiocmset)(struct hvc_struct *hp, unsigned int set, unsigned int clear);
90 extern int hvc_remove(struct hvc_struct *hp);
93 int hvc_poll(struct hvc_struct *hp);
97 extern void __hvc_resize(struct hvc_struct *hp, struct winsize ws);
99 static inline void hvc_resize(struct hvc_struct *hp, struct winsize ws) argument
103 spin_lock_irqsave(&hp
[all...]
H A Dhvc_opal.c93 static int hvc_opal_hvsi_open(struct hvc_struct *hp, int data) argument
95 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
98 pr_devel("HVSI@%x: do open !\n", hp->vtermno);
100 rc = notifier_add_irq(hp, data);
104 return hvsilib_open(&pv->hvsi, hp);
107 static void hvc_opal_hvsi_close(struct hvc_struct *hp, int data) argument
109 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
111 pr_devel("HVSI@%x: do close !\n", hp->vtermno);
113 hvsilib_close(&pv->hvsi, hp);
115 notifier_del_irq(hp, dat
118 hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) argument
129 hvc_opal_hvsi_tiocmget(struct hvc_struct *hp) argument
138 hvc_opal_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, unsigned int clear) argument
167 struct hvc_struct *hp; local
227 struct hvc_struct *hp = dev_get_drvdata(&dev->dev); local
[all...]
H A Dhvc_udbg.c68 struct hvc_struct *hp; local
72 hp = hvc_alloc(0, NO_IRQ, &hvc_udbg_ops, 16);
73 if (IS_ERR(hp))
74 return PTR_ERR(hp);
76 hvc_udbg_dev = hp;
H A Dhvc_vio.c163 static int hvterm_hvsi_open(struct hvc_struct *hp, int data) argument
165 struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
170 rc = notifier_add_irq(hp, data);
174 return hvsilib_open(&pv->hvsi, hp);
177 static void hvterm_hvsi_close(struct hvc_struct *hp, int data) argument
179 struct hvterm_priv *pv = hvterm_privs[hp->vtermno];
183 hvsilib_close(&pv->hvsi, hp);
185 notifier_del_irq(hp, data);
188 void hvterm_hvsi_hangup(struct hvc_struct *hp, int data) argument
190 struct hvterm_priv *pv = hvterm_privs[hp
199 hvterm_hvsi_tiocmget(struct hvc_struct *hp) argument
208 hvterm_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, unsigned int clear) argument
238 struct hvc_struct *hp; local
298 struct hvc_struct *hp = dev_get_drvdata(&vdev->dev); local
[all...]
H A Dhvc_beat.c111 struct hvc_struct *hp; local
116 hp = hvc_alloc(0, NO_IRQ, &hvc_beat_get_put_ops, 16);
117 if (IS_ERR(hp))
118 return PTR_ERR(hp);
119 hvc_beat_dev = hp;
H A Dhvc_rtas.c81 struct hvc_struct *hp; local
96 * earlier. Save off hp so that we can return it on exit */
97 hp = hvc_alloc(hvc_rtas_cookie, NO_IRQ, &hvc_rtas_get_put_ops, 16);
98 if (IS_ERR(hp))
99 return PTR_ERR(hp);
101 hvc_rtas_dev = hp;
H A Dhvc_iseries.c57 struct hvc_struct *hp; member in struct:port_info
212 struct hvc_struct *hp; local
224 hp = hvc_alloc(vdev->unit_address, vdev->irq, &hvc_get_put_ops,
226 if (IS_ERR(hp))
227 return PTR_ERR(hp);
228 pi->hp = hp;
237 struct hvc_struct *hp = pi->hp; local
239 return hvc_remove(hp);
[all...]
H A Dhvc_xen.c162 struct hvc_struct *hp; local
183 hp = hvc_alloc(HVC_COOKIE, xencons_irq, ops, 256);
184 if (IS_ERR(hp))
185 return PTR_ERR(hp);
187 hvc = hp;
H A Dhvsi_lib.c375 int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp) argument
380 pv->tty = tty_kref_get(hp->tty);
387 void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp) argument
398 spin_lock_irqsave(&hp->lock, flags);
400 spin_unlock_irqrestore(&hp->lock, flags);
/drivers/char/agp/
H A Dhp-agp.c5 * Bjorn Helgaas <bjorn.helgaas@hp.com>
79 struct _hp_private *hp = &hp_private; local
89 hp->io_tlb_ps = readq(hp->ioc_regs+HP_ZX1_TCNFG);
90 switch (hp->io_tlb_ps) {
91 case 0: hp->io_tlb_shift = 12; break;
92 case 1: hp->io_tlb_shift = 13; break;
93 case 2: hp->io_tlb_shift = 14; break;
94 case 3: hp->io_tlb_shift = 16; break;
97 "configuration 0x%x\n", hp
129 struct _hp_private *hp = &hp_private; local
165 struct _hp_private *hp = &hp_private; local
209 struct _hp_private *hp = &hp_private; local
243 struct _hp_private *hp = &hp_private; local
268 struct _hp_private *hp = &hp_private; local
284 struct _hp_private *hp = &hp_private; local
293 struct _hp_private *hp = &hp_private; local
321 struct _hp_private *hp = &hp_private; local
334 struct _hp_private *hp = &hp_private; local
381 struct _hp_private *hp = &hp_private; local
408 struct _hp_private *hp = &hp_private; local
[all...]
H A DMakefile12 obj-$(CONFIG_AGP_HP_ZX1) += hp-agp.o
/drivers/net/ethernet/sun/
H A Dsunhme.c111 static __inline__ void tx_add_log(struct happy_meal *hp, unsigned int a, unsigned int s) argument
119 tlp->tx_new = hp->tx_new;
120 tlp->tx_old = hp->tx_old;
139 static __inline__ void tx_dump_ring(struct happy_meal *hp) argument
141 struct hmeal_init_block *hb = hp->happy_block;
155 #define tx_add_log(hp, a, s) do { } while(0)
157 #define tx_dump_ring(hp) do { } while(0)
305 static inline u32 hme_read_desc32(struct happy_meal *hp, hme32 *p) argument
322 static void BB_PUT_BIT(struct happy_meal *hp, void __iomem *tregs, int bit) argument
324 hme_write32(hp, treg
346 BB_GET_BIT2(struct happy_meal *hp, void __iomem *tregs, int internal) argument
364 happy_meal_bb_read(struct happy_meal *hp, void __iomem *tregs, int reg) argument
410 happy_meal_bb_write(struct happy_meal *hp, void __iomem *tregs, int reg, unsigned short value) argument
455 happy_meal_tcvr_read(struct happy_meal *hp, void __iomem *tregs, int reg) argument
487 happy_meal_tcvr_write(struct happy_meal *hp, void __iomem *tregs, int reg, unsigned short value) argument
547 try_next_permutation(struct happy_meal *hp, void __iomem *tregs) argument
571 display_link_mode(struct happy_meal *hp, void __iomem *tregs) argument
593 display_forced_link_mode(struct happy_meal *hp, void __iomem *tregs) argument
612 set_happy_link_modes(struct happy_meal *hp, void __iomem *tregs) argument
674 is_lucent_phy(struct happy_meal *hp) argument
691 struct happy_meal *hp = (struct happy_meal *) data; local
873 happy_meal_tx_reset(struct happy_meal *hp, void __iomem *bregs) argument
893 happy_meal_rx_reset(struct happy_meal *hp, void __iomem *bregs) argument
915 happy_meal_stop(struct happy_meal *hp, void __iomem *gregs) argument
935 happy_meal_get_counters(struct happy_meal *hp, void __iomem *bregs) argument
958 happy_meal_poll_stop(struct happy_meal *hp, void __iomem *tregs) argument
993 happy_meal_tcvr_reset(struct happy_meal *hp, void __iomem *tregs) argument
1091 happy_meal_transceiver_check(struct happy_meal *hp, void __iomem *tregs) argument
1198 happy_meal_clean_rings(struct happy_meal *hp) argument
1250 happy_meal_init_rings(struct happy_meal *hp) argument
1293 happy_meal_begin_auto_negotiation(struct happy_meal *hp, void __iomem *tregs, struct ethtool_cmd *ep) argument
1417 happy_meal_init(struct happy_meal *hp) argument
1707 happy_meal_set_initial_advertisement(struct happy_meal *hp) argument
1767 happy_meal_is_not_so_happy(struct happy_meal *hp, u32 status) argument
1881 happy_meal_mif_interrupt(struct happy_meal *hp) argument
1915 happy_meal_tx(struct happy_meal *hp) argument
1987 happy_meal_rx(struct happy_meal *hp, struct net_device *dev) argument
2089 struct happy_meal *hp = netdev_priv(dev); local
2132 struct happy_meal *hp = netdev_priv(dev); local
2177 struct happy_meal *hp = netdev_priv(dev); local
2209 struct happy_meal *hp = netdev_priv(dev); local
2238 struct happy_meal *hp = netdev_priv(dev); local
2257 struct happy_meal *hp = netdev_priv(dev); local
2343 struct happy_meal *hp = netdev_priv(dev); local
2354 struct happy_meal *hp = netdev_priv(dev); local
2390 struct happy_meal *hp = netdev_priv(dev); local
2434 struct happy_meal *hp = netdev_priv(dev); local
2458 struct happy_meal *hp = netdev_priv(dev); local
2481 struct happy_meal *hp = netdev_priv(dev); local
2633 struct happy_meal *hp; local
2940 struct happy_meal *hp; local
3173 struct happy_meal *hp = dev_get_drvdata(&pdev->dev); local
3245 struct happy_meal *hp = dev_get_drvdata(&op->dev); local
[all...]
H A Dsunhme.h364 #define TX_BUFFS_AVAIL(hp) \
365 (((hp)->tx_old <= (hp)->tx_new) ? \
366 (hp)->tx_old + (TX_RING_SIZE - 1) - (hp)->tx_new : \
367 (hp)->tx_old - (hp)->tx_new - 1)
H A Dsunvnet.c616 struct hlist_head *hp = &vp->port_hash[hash]; local
620 hlist_for_each_entry(port, n, hp, hash) {
1094 static struct vnet * __devinit vnet_find_parent(struct mdesc_handle *hp, argument
1100 mdesc_for_each_arc(a, hp, port_node, MDESC_ARC_TYPE_BACK) {
1101 u64 target = mdesc_arc_target(hp, a);
1104 name = mdesc_get_property(hp, target, "name", NULL);
1108 local_mac = mdesc_get_property(hp, target,
1141 struct mdesc_handle *hp; local
1150 hp = mdesc_grab();
1152 vp = vnet_find_parent(hp, vde
[all...]
/drivers/scsi/
H A Dsg.c352 sg_io_hdr_t *hp; local
423 hp = &srp->header;
432 old_hdr->reply_len = (int) hp->timeout;
434 old_hdr->pack_id = hp->pack_id;
436 ((srp->data.cmd_opcode >= 0xc0) && (12 == hp->cmd_len)) ? 1 : 0;
437 old_hdr->target_status = hp->masked_status;
438 old_hdr->host_status = hp->host_status;
439 old_hdr->driver_status = hp->driver_status;
440 if ((CHECK_CONDITION & hp->masked_status) ||
441 (DRIVER_SENSE & hp
500 sg_io_hdr_t *hp = &srp->header; local
544 sg_io_hdr_t *hp; local
653 sg_io_hdr_t *hp; local
724 sg_io_hdr_t *hp = &srp->header; local
1632 sg_io_hdr_t *hp = &srp->header; local
2522 const sg_io_hdr_t *hp; local
[all...]
/drivers/net/ethernet/8390/
H A DMakefile13 obj-$(CONFIG_HPLAN_PLUS) += hp-plus.o 8390p.o
14 obj-$(CONFIG_HPLAN) += hp.o 8390p.o
/drivers/sh/intc/
H A Dchip.c121 static struct intc_handle_int *intc_find_irq(struct intc_handle_int *hp, argument
140 if ((hp + i)->irq != irq)
143 return hp + i;
H A Dcore.c76 struct intc_handle_int *hp; local
136 hp = d->prio + d->nr_prio;
137 hp->irq = irq;
138 hp->handle = data[1];
145 hp->handle &= ~_INTC_MK(0x0f, 0, 0, 0, 0, 0);
146 hp->handle |= _INTC_MK(REG_FN_ERR, 0, 0, 0, 0, 0);
/drivers/net/ethernet/
H A DMakefile30 obj-$(CONFIG_NET_VENDOR_HP) += hp/
/drivers/platform/x86/
H A DMakefile19 obj-$(CONFIG_HP_WMI) += hp-wmi.o
/drivers/scsi/fcoe/
H A Dfcoe.c1474 struct fcoe_hdr *hp; local
1561 hp = (struct fcoe_hdr *)(eh + 1);
1562 memset(hp, 0, sizeof(*hp));
1564 FC_FCOE_ENCAPS_VER(hp, FC_FCOE_VER);
1565 hp->fcoe_sof = sof;
1660 struct fcoe_hdr *hp; local
1685 hp = (struct fcoe_hdr *) skb_network_header(skb);
1688 if (unlikely(FC_FCOE_DECAPS_VER(hp) != FC_FCOE_VER)) {
1694 "%x\n", FC_FCOE_DECAPS_VER(hp),
[all...]
/drivers/block/
H A Dsunvdc.c739 struct mdesc_handle *hp; local
745 hp = mdesc_grab();
795 mdesc_release(hp);
809 mdesc_release(hp);

Completed in 243 milliseconds

12