Searched refs:hp (Results 1 - 25 of 45) 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 Dhvc_console.c106 struct hvc_struct *hp; local
111 list_for_each_entry(hp, &hvc_structs, next) {
112 spin_lock_irqsave(&hp->lock, flags);
113 if (hp->index == index) {
114 tty_port_get(&hp->port);
115 spin_unlock_irqrestore(&hp->lock, flags);
117 return hp;
119 spin_unlock_irqrestore(&hp->lock, flags);
121 hp = NULL;
124 return hp;
238 struct hvc_struct *hp = container_of(port, struct hvc_struct, port); local
274 struct hvc_struct *hp; local
318 struct hvc_struct *hp; local
339 struct hvc_struct *hp = tty->driver_data; local
382 struct hvc_struct *hp; local
431 struct hvc_struct *hp = tty->driver_data; local
438 struct hvc_struct *hp = tty->driver_data; local
473 hvc_push(struct hvc_struct *hp) argument
498 struct hvc_struct *hp = tty->driver_data; local
548 struct hvc_struct *hp; local
574 struct hvc_struct *hp = tty->driver_data; local
584 struct hvc_struct *hp = tty->driver_data; local
606 hvc_poll(struct hvc_struct *hp) argument
725 __hvc_resize(struct hvc_struct *hp, struct winsize ws) argument
740 struct hvc_struct *hp; local
784 struct hvc_struct *hp = tty->driver_data; local
794 struct hvc_struct *hp = tty->driver_data; local
810 struct hvc_struct *hp = tty->driver_data; local
825 struct hvc_struct *hp = tty->driver_data; local
861 struct hvc_struct *hp; local
916 hvc_remove(struct hvc_struct *hp) argument
[all...]
H A Dhvsi.c100 static int (*hvsi_wait)(struct hvsi_struct *hp, int state);
112 static inline int is_console(struct hvsi_struct *hp) argument
114 return hp->flags & HVSI_CONSOLE;
117 static inline int is_open(struct hvsi_struct *hp) argument
120 return (hp->state == HVSI_OPEN)
121 || (hp->state == HVSI_WAIT_FOR_MCTRL_RESPONSE);
124 static inline void print_state(struct hvsi_struct *hp) argument
135 const char *name = (hp->state < ARRAY_SIZE(state_names))
136 ? state_names[hp->state] : "UNKNOWN";
138 pr_debug("hvsi%i: state = %s\n", hp
142 __set_state(struct hvsi_struct *hp, int state) argument
149 set_state(struct hvsi_struct *hp, int state) argument
169 got_packet(const struct hvsi_struct *hp, uint8_t *packet) argument
181 compact_inbuf(struct hvsi_struct *hp, uint8_t *read_to) argument
229 hvsi_read(struct hvsi_struct *hp, char *buf, int count) argument
238 hvsi_recv_control(struct hvsi_struct *hp, uint8_t *packet, struct tty_struct *tty, struct hvsi_struct **to_handshake) argument
267 hvsi_recv_response(struct hvsi_struct *hp, uint8_t *packet) argument
291 hvsi_version_respond(struct hvsi_struct *hp, uint16_t query_seqno) argument
316 hvsi_recv_query(struct hvsi_struct *hp, uint8_t *packet) argument
332 hvsi_insert_chars(struct hvsi_struct *hp, const char *buf, int len) argument
361 hvsi_recv_data(struct hvsi_struct *hp, const uint8_t *packet) argument
399 hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty, struct hvsi_struct **handshake) argument
473 hvsi_send_overflow(struct hvsi_struct *hp) argument
488 struct hvsi_struct *hp = (struct hvsi_struct *)arg; local
524 poll_for_state(struct hvsi_struct *hp, int state) argument
541 wait_for_state(struct hvsi_struct *hp, int state) argument
551 hvsi_query(struct hvsi_struct *hp, uint16_t verb) argument
574 hvsi_get_mctrl(struct hvsi_struct *hp) argument
594 hvsi_set_mctrl(struct hvsi_struct *hp, uint16_t mctrl) argument
620 hvsi_drain_input(struct hvsi_struct *hp) argument
630 hvsi_handshake(struct hvsi_struct *hp) argument
659 struct hvsi_struct *hp = local
675 hvsi_put_chars(struct hvsi_struct *hp, const char *buf, int count) argument
695 hvsi_close_protocol(struct hvsi_struct *hp) argument
712 struct hvsi_struct *hp; local
758 hvsi_flush_output(struct hvsi_struct *hp) argument
775 struct hvsi_struct *hp = tty->driver_data; local
827 struct hvsi_struct *hp = tty->driver_data; local
841 hvsi_push(struct hvsi_struct *hp) argument
862 struct hvsi_struct *hp = local
906 struct hvsi_struct *hp = tty->driver_data; local
913 struct hvsi_struct *hp = tty->driver_data; local
921 struct hvsi_struct *hp = tty->driver_data; local
979 struct hvsi_struct *hp = tty->driver_data; local
988 struct hvsi_struct *hp = tty->driver_data; local
1006 struct hvsi_struct *hp = tty->driver_data; local
1015 struct hvsi_struct *hp = tty->driver_data; local
1071 struct hvsi_struct *hp = &hvsi_ports[i]; local
1097 struct hvsi_struct *hp = &hvsi_ports[console->index]; local
1138 struct hvsi_struct *hp; local
1182 struct hvsi_struct *hp; local
[all...]
H A Dhvc_console.h71 int (*notifier_add)(struct hvc_struct *hp, int irq);
72 void (*notifier_del)(struct hvc_struct *hp, int irq);
73 void (*notifier_hangup)(struct hvc_struct *hp, int irq);
76 int (*tiocmget)(struct hvc_struct *hp);
77 int (*tiocmset)(struct hvc_struct *hp, unsigned int set, unsigned int clear);
80 void (*dtr_rts)(struct hvc_struct *hp, int raise);
91 extern int hvc_remove(struct hvc_struct *hp);
94 int hvc_poll(struct hvc_struct *hp);
98 extern void __hvc_resize(struct hvc_struct *hp, struct winsize ws);
100 static inline void hvc_resize(struct hvc_struct *hp, struc argument
[all...]
H A Dhvc_tile.c81 static int hvc_tile_notifier_add_irq(struct hvc_struct *hp, int irq) argument
87 rc = notifier_add_irq(hp, irq);
97 notifier_del_irq(hp, irq);
102 static void hvc_tile_notifier_del_irq(struct hvc_struct *hp, int irq) argument
109 notifier_del_irq(hp, irq);
112 static void hvc_tile_notifier_hangup_irq(struct hvc_struct *hp, int irq) argument
114 hvc_tile_notifier_del_irq(hp, irq);
132 struct hvc_struct *hp; local
141 hp = hvc_alloc(0, tile_hvc_irq, &hvc_tile_get_put_ops, 128);
142 if (IS_ERR(hp)) {
154 struct hvc_struct *hp = dev_get_drvdata(&pdev->dev); local
165 struct hvc_struct *hp = dev_get_drvdata(&pdev->dev); local
197 struct hvc_struct *hp; local
[all...]
H A Dhvc_opal.c94 static int hvc_opal_hvsi_open(struct hvc_struct *hp, int data) argument
96 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
99 pr_devel("HVSI@%x: do open !\n", hp->vtermno);
101 rc = notifier_add_irq(hp, data);
105 return hvsilib_open(&pv->hvsi, hp);
108 static void hvc_opal_hvsi_close(struct hvc_struct *hp, int data) argument
110 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno];
112 pr_devel("HVSI@%x: do close !\n", hp->vtermno);
114 hvsilib_close(&pv->hvsi, hp);
116 notifier_del_irq(hp, dat
119 hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) argument
130 hvc_opal_hvsi_tiocmget(struct hvc_struct *hp) argument
139 hvc_opal_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, unsigned int clear) argument
180 struct hvc_struct *hp; local
247 struct hvc_struct *hp = dev_get_drvdata(&dev->dev); local
[all...]
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, 0, &hvc_rtas_get_put_ops, 16);
98 if (IS_ERR(hp))
99 return PTR_ERR(hp);
101 hvc_rtas_dev = hp;
H A Dhvc_udbg.c68 struct hvc_struct *hp; local
75 hp = hvc_alloc(0, 0, &hvc_udbg_ops, 16);
76 if (IS_ERR(hp))
77 return PTR_ERR(hp);
79 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
301 struct hvc_struct *hp; local
368 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, 0, &hvc_beat_get_put_ops, 16);
117 if (IS_ERR(hp))
118 return PTR_ERR(hp);
119 hvc_beat_dev = hp;
H A Dhvsi_lib.c373 int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp) argument
378 pv->tty = tty_port_tty_get(&hp->port);
385 void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp) argument
396 spin_lock_irqsave(&hp->lock, flags);
398 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.c110 static __inline__ void tx_add_log(struct happy_meal *hp, unsigned int a, unsigned int s) argument
118 tlp->tx_new = hp->tx_new;
119 tlp->tx_old = hp->tx_old;
138 static __inline__ void tx_dump_ring(struct happy_meal *hp) argument
140 struct hmeal_init_block *hb = hp->happy_block;
154 #define tx_add_log(hp, a, s) do { } while(0)
156 #define tx_dump_ring(hp) do { } while(0)
304 static inline u32 hme_read_desc32(struct happy_meal *hp, hme32 *p) argument
321 static void BB_PUT_BIT(struct happy_meal *hp, void __iomem *tregs, int bit) argument
323 hme_write32(hp, treg
345 BB_GET_BIT2(struct happy_meal *hp, void __iomem *tregs, int internal) argument
363 happy_meal_bb_read(struct happy_meal *hp, void __iomem *tregs, int reg) argument
409 happy_meal_bb_write(struct happy_meal *hp, void __iomem *tregs, int reg, unsigned short value) argument
454 happy_meal_tcvr_read(struct happy_meal *hp, void __iomem *tregs, int reg) argument
486 happy_meal_tcvr_write(struct happy_meal *hp, void __iomem *tregs, int reg, unsigned short value) argument
546 try_next_permutation(struct happy_meal *hp, void __iomem *tregs) argument
570 display_link_mode(struct happy_meal *hp, void __iomem *tregs) argument
592 display_forced_link_mode(struct happy_meal *hp, void __iomem *tregs) argument
611 set_happy_link_modes(struct happy_meal *hp, void __iomem *tregs) argument
673 is_lucent_phy(struct happy_meal *hp) argument
690 struct happy_meal *hp = (struct happy_meal *) data; local
872 happy_meal_tx_reset(struct happy_meal *hp, void __iomem *bregs) argument
892 happy_meal_rx_reset(struct happy_meal *hp, void __iomem *bregs) argument
914 happy_meal_stop(struct happy_meal *hp, void __iomem *gregs) argument
934 happy_meal_get_counters(struct happy_meal *hp, void __iomem *bregs) argument
957 happy_meal_poll_stop(struct happy_meal *hp, void __iomem *tregs) argument
992 happy_meal_tcvr_reset(struct happy_meal *hp, void __iomem *tregs) argument
1090 happy_meal_transceiver_check(struct happy_meal *hp, void __iomem *tregs) argument
1197 happy_meal_clean_rings(struct happy_meal *hp) argument
1249 happy_meal_init_rings(struct happy_meal *hp) argument
1297 happy_meal_begin_auto_negotiation(struct happy_meal *hp, void __iomem *tregs, struct ethtool_cmd *ep) argument
1421 happy_meal_init(struct happy_meal *hp) argument
1711 happy_meal_set_initial_advertisement(struct happy_meal *hp) argument
1771 happy_meal_is_not_so_happy(struct happy_meal *hp, u32 status) argument
1885 happy_meal_mif_interrupt(struct happy_meal *hp) argument
1919 happy_meal_tx(struct happy_meal *hp) argument
1991 happy_meal_rx(struct happy_meal *hp, struct net_device *dev) argument
2101 struct happy_meal *hp = netdev_priv(dev); local
2144 struct happy_meal *hp = netdev_priv(dev); local
2189 struct happy_meal *hp = netdev_priv(dev); local
2222 struct happy_meal *hp = netdev_priv(dev); local
2251 struct happy_meal *hp = netdev_priv(dev); local
2267 unmap_partial_tx_skb(struct happy_meal *hp, u32 first_mapping, u32 first_len, u32 first_entry, u32 entry) argument
2289 struct happy_meal *hp = netdev_priv(dev); local
2392 struct happy_meal *hp = netdev_priv(dev); local
2403 struct happy_meal *hp = netdev_priv(dev); local
2439 struct happy_meal *hp = netdev_priv(dev); local
2483 struct happy_meal *hp = netdev_priv(dev); local
2507 struct happy_meal *hp = netdev_priv(dev); local
2530 struct happy_meal *hp = netdev_priv(dev); local
2682 struct happy_meal *hp; local
2987 struct happy_meal *hp; local
3214 struct happy_meal *hp = pci_get_drvdata(pdev); local
3284 struct happy_meal *hp = platform_get_drvdata(op); 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)
/drivers/pci/hotplug/
H A Dacpiphp.h10 * Copyright (C) 2003-2005 Matthew Wilcox (matthew.wilcox@hp.com)
119 struct acpi_hotplug_context hp; member in struct:acpiphp_context
125 static inline struct acpiphp_context *to_acpiphp_context(struct acpi_hotplug_context *hp) argument
127 return container_of(hp, struct acpiphp_context, hp);
137 return func_to_context(func)->hp.self;
146 struct acpi_hotplug_context hp; member in struct:acpiphp_root_context
150 static inline struct acpiphp_root_context *to_acpiphp_root_context(struct acpi_hotplug_context *hp) argument
152 return container_of(hp, struct acpiphp_root_context, hp);
[all...]
H A Dacpiphp_glue.c7 * Copyright (C) 2003-2005 Matthew Wilcox (matthew.wilcox@hp.com)
82 context->hp.notify = acpiphp_hotplug_notify;
83 context->hp.fixup = acpiphp_post_dock_fixup;
84 acpi_set_hp_context(adev, &context->hp);
98 if (!adev->hp)
101 context = to_acpiphp_context(adev->hp);
120 context->hp.self->hp = NULL;
382 adev->hp->notify = NULL;
383 adev->hp
[all...]
/drivers/staging/lustre/lustre/ptlrpc/
H A Dptlrpc_internal.h120 struct ptlrpc_request *req, bool hp);
124 struct ptlrpc_request *req, bool hp);
127 ptlrpc_nrs_req_get_nolock0(struct ptlrpc_service_part *svcpt, bool hp,
131 ptlrpc_nrs_req_get_nolock(struct ptlrpc_service_part *svcpt, bool hp, argument
134 return ptlrpc_nrs_req_get_nolock0(svcpt, hp, false, force);
138 ptlrpc_nrs_req_peek_nolock(struct ptlrpc_service_part *svcpt, bool hp) argument
140 return ptlrpc_nrs_req_get_nolock0(svcpt, hp, true, false);
144 bool ptlrpc_nrs_req_pending_nolock(struct ptlrpc_service_part *svcpt, bool hp);
168 struct ptlrpc_nrs *nrs_svcpt2nrs(struct ptlrpc_service_part *svcpt, bool hp) argument
170 LASSERT(ergo(hp, nrs_svcpt_has_h
[all...]
H A Dnrs.c998 bool hp = false; local
1003 nrs = nrs_svcpt2nrs(svcpt, hp);
1015 if (!hp && nrs_svcpt_has_hp(svcpt)) {
1016 hp = true;
1020 if (hp)
1073 bool hp = false; local
1076 nrs = nrs_svcpt2nrs(svcpt, hp);
1092 if (!hp && nrs_svc_has_hp(svc)) {
1093 hp = true;
1207 bool hp local
1428 ptlrpc_nrs_req_initialize(struct ptlrpc_service_part *svcpt, struct ptlrpc_request *req, bool hp) argument
1477 ptlrpc_nrs_req_add(struct ptlrpc_service_part *svcpt, struct ptlrpc_request *req, bool hp) argument
1536 ptlrpc_nrs_req_get_nolock0(struct ptlrpc_service_part *svcpt, bool hp, bool peek, bool force) argument
1596 ptlrpc_nrs_req_pending_nolock(struct ptlrpc_service_part *svcpt, bool hp) argument
[all...]
/drivers/scsi/
H A Dsg.c405 sg_io_hdr_t *hp; local
471 hp = &srp->header;
480 old_hdr->reply_len = (int) hp->timeout;
482 old_hdr->pack_id = hp->pack_id;
484 ((srp->data.cmd_opcode >= 0xc0) && (12 == hp->cmd_len)) ? 1 : 0;
485 old_hdr->target_status = hp->masked_status;
486 old_hdr->host_status = hp->host_status;
487 old_hdr->driver_status = hp->driver_status;
488 if ((CHECK_CONDITION & hp->masked_status) ||
489 (DRIVER_SENSE & hp
548 sg_io_hdr_t *hp = &srp->header; local
592 sg_io_hdr_t *hp; local
696 sg_io_hdr_t *hp; local
768 sg_io_hdr_t *hp = &srp->header; local
1692 sg_io_hdr_t *hp = &srp->header; local
2614 const sg_io_hdr_t *hp; local
[all...]
/drivers/sh/intc/
H A Dchip.c117 static struct intc_handle_int *intc_find_irq(struct intc_handle_int *hp, argument
126 return bsearch(&key, hp, nr_hp, sizeof(*hp), intc_handle_int_cmp);
H A Dcore.c78 struct intc_handle_int *hp; local
132 hp = d->prio + d->nr_prio;
133 hp->irq = irq;
134 hp->handle = data[1];
141 hp->handle &= ~_INTC_MK(0x0f, 0, 0, 0, 0, 0);
142 hp->handle |= _INTC_MK(REG_FN_ERR, 0, 0, 0, 0, 0);
/drivers/clk/pxa/
H A Dclk-pxa.h77 struct clk_fixed_factor hp; member in struct:pxa_clk_cken
88 .hp = { .mult = _mult_hp, .div = _div_hp }, \
H A Dclk-pxa.c40 fix = &pclk->hp;
/drivers/platform/x86/
H A DMakefile20 obj-$(CONFIG_HP_WIRELESS) += hp-wireless.o
21 obj-$(CONFIG_HP_WMI) += hp-wmi.o

Completed in 1764 milliseconds

12