/drivers/net/ |
D | sunhme.c | 111 static __inline__ void tx_add_log(struct happy_meal *hp, unsigned int a, unsigned int s) in tx_add_log() argument 119 tlp->tx_new = hp->tx_new; in tx_add_log() 120 tlp->tx_old = hp->tx_old; in tx_add_log() 139 static __inline__ void tx_dump_ring(struct happy_meal *hp) in tx_dump_ring() argument 141 struct hmeal_init_block *hb = hp->happy_block; in tx_dump_ring() 155 #define tx_add_log(hp, a, s) do { } while(0) argument 157 #define tx_dump_ring(hp) do { } while(0) argument 305 static inline u32 hme_read_desc32(struct happy_meal *hp, hme32 *p) in hme_read_desc32() argument 322 static void BB_PUT_BIT(struct happy_meal *hp, void __iomem *tregs, int bit) in BB_PUT_BIT() argument 324 hme_write32(hp, tregs + TCVR_BBDATA, bit); in BB_PUT_BIT() [all …]
|
D | sunhme.h | 364 #define TX_BUFFS_AVAIL(hp) \ argument 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)
|
D | sunvnet.c | 616 struct hlist_head *hp = &vp->port_hash[hash]; in __tx_port_find() local 620 hlist_for_each_entry(port, n, hp, hash) { in __tx_port_find() 1096 static struct vnet * __devinit vnet_find_parent(struct mdesc_handle *hp, in vnet_find_parent() argument 1102 mdesc_for_each_arc(a, hp, port_node, MDESC_ARC_TYPE_BACK) { in vnet_find_parent() 1103 u64 target = mdesc_arc_target(hp, a); in vnet_find_parent() 1106 name = mdesc_get_property(hp, target, "name", NULL); in vnet_find_parent() 1110 local_mac = mdesc_get_property(hp, target, in vnet_find_parent() 1146 struct mdesc_handle *hp; in vnet_port_probe() local 1155 hp = mdesc_grab(); in vnet_port_probe() 1157 vp = vnet_find_parent(hp, vdev->mp); in vnet_port_probe() [all …]
|
/drivers/char/ |
D | hvsi.c | 100 static int (*hvsi_wait)(struct hvsi_struct *hp, int state); 174 static inline int is_console(struct hvsi_struct *hp) in is_console() argument 176 return hp->flags & HVSI_CONSOLE; in is_console() 179 static inline int is_open(struct hvsi_struct *hp) in is_open() argument 182 return (hp->state == HVSI_OPEN) in is_open() 183 || (hp->state == HVSI_WAIT_FOR_MCTRL_RESPONSE); in is_open() 186 static inline void print_state(struct hvsi_struct *hp) in print_state() argument 197 const char *name = state_names[hp->state]; in print_state() 199 if (hp->state > ARRAY_SIZE(state_names)) in print_state() 202 pr_debug("hvsi%i: state = %s\n", hp->index, name); in print_state() [all …]
|
D | hvc_console.c | 100 struct hvc_struct *hp; in hvc_get_by_index() local 105 list_for_each_entry(hp, &hvc_structs, next) { in hvc_get_by_index() 106 spin_lock_irqsave(&hp->lock, flags); in hvc_get_by_index() 107 if (hp->index == index) { in hvc_get_by_index() 108 kref_get(&hp->kref); in hvc_get_by_index() 109 spin_unlock_irqrestore(&hp->lock, flags); in hvc_get_by_index() 111 return hp; in hvc_get_by_index() 113 spin_unlock_irqrestore(&hp->lock, flags); in hvc_get_by_index() 115 hp = NULL; in hvc_get_by_index() 118 return hp; in hvc_get_by_index() [all …]
|
D | hvc_irq.c | 23 int notifier_add_irq(struct hvc_struct *hp, int irq) in notifier_add_irq() argument 28 hp->irq_requested = 0; in notifier_add_irq() 32 "hvc_console", hp); in notifier_add_irq() 34 hp->irq_requested = 1; in notifier_add_irq() 38 void notifier_del_irq(struct hvc_struct *hp, int irq) in notifier_del_irq() argument 40 if (!hp->irq_requested) in notifier_del_irq() 42 free_irq(irq, hp); in notifier_del_irq() 43 hp->irq_requested = 0; in notifier_del_irq() 46 void notifier_hangup_irq(struct hvc_struct *hp, int irq) in notifier_hangup_irq() argument 48 notifier_del_irq(hp, irq); in notifier_hangup_irq()
|
D | hvc_console.h | 72 int (*notifier_add)(struct hvc_struct *hp, int irq); 73 void (*notifier_del)(struct hvc_struct *hp, int irq); 74 void (*notifier_hangup)(struct hvc_struct *hp, int irq); 84 extern int hvc_remove(struct hvc_struct *hp); 87 int hvc_poll(struct hvc_struct *hp); 91 extern void hvc_resize(struct hvc_struct *hp, struct winsize ws); 94 extern int notifier_add_irq(struct hvc_struct *hp, int data); 95 extern void notifier_del_irq(struct hvc_struct *hp, int data); 96 extern void notifier_hangup_irq(struct hvc_struct *hp, int data);
|
D | hvc_vio.c | 91 struct hvc_struct *hp; in hvc_vio_probe() local 97 hp = hvc_alloc(vdev->unit_address, vdev->irq, &hvc_get_put_ops, in hvc_vio_probe() 99 if (IS_ERR(hp)) in hvc_vio_probe() 100 return PTR_ERR(hp); in hvc_vio_probe() 101 dev_set_drvdata(&vdev->dev, hp); in hvc_vio_probe() 108 struct hvc_struct *hp = dev_get_drvdata(&vdev->dev); in hvc_vio_remove() local 110 return hvc_remove(hp); in hvc_vio_remove()
|
D | hvc_udbg.c | 68 struct hvc_struct *hp; in hvc_udbg_init() local 72 hp = hvc_alloc(0, NO_IRQ, &hvc_udbg_ops, 16); in hvc_udbg_init() 73 if (IS_ERR(hp)) in hvc_udbg_init() 74 return PTR_ERR(hp); in hvc_udbg_init() 76 hvc_udbg_dev = hp; in hvc_udbg_init()
|
D | hvc_rtas.c | 81 struct hvc_struct *hp; in hvc_rtas_init() local 97 hp = hvc_alloc(hvc_rtas_cookie, NO_IRQ, &hvc_rtas_get_put_ops, 16); in hvc_rtas_init() 98 if (IS_ERR(hp)) in hvc_rtas_init() 99 return PTR_ERR(hp); in hvc_rtas_init() 101 hvc_rtas_dev = hp; in hvc_rtas_init()
|
D | hvc_beat.c | 111 struct hvc_struct *hp; in hvc_beat_init() local 116 hp = hvc_alloc(0, NO_IRQ, &hvc_beat_get_put_ops, 16); in hvc_beat_init() 117 if (IS_ERR(hp)) in hvc_beat_init() 118 return PTR_ERR(hp); in hvc_beat_init() 119 hvc_beat_dev = hp; in hvc_beat_init()
|
D | hvc_iseries.c | 56 struct hvc_struct *hp; member 211 struct hvc_struct *hp; in hvc_vio_probe() local 223 hp = hvc_alloc(vdev->unit_address, vdev->irq, &hvc_get_put_ops, in hvc_vio_probe() 225 if (IS_ERR(hp)) in hvc_vio_probe() 226 return PTR_ERR(hp); in hvc_vio_probe() 227 pi->hp = hp; in hvc_vio_probe() 236 struct hvc_struct *hp = pi->hp; in hvc_vio_remove() local 238 return hvc_remove(hp); in hvc_vio_remove()
|
D | hvc_xen.c | 110 struct hvc_struct *hp; in xen_init() local 121 hp = hvc_alloc(HVC_COOKIE, xencons_irq, &hvc_ops, 256); in xen_init() 122 if (IS_ERR(hp)) in xen_init() 123 return PTR_ERR(hp); in xen_init() 125 hvc = hp; in xen_init()
|
D | virtio_console.c | 163 static int notifier_add_vio(struct hvc_struct *hp, int data) in notifier_add_vio() argument 165 hp->irq_requested = 1; in notifier_add_vio() 171 static void notifier_del_vio(struct hvc_struct *hp, int data) in notifier_del_vio() argument 173 hp->irq_requested = 0; in notifier_del_vio()
|
D | hvc_iucv.c | 473 static int hvc_iucv_notifier_add(struct hvc_struct *hp, int id) in hvc_iucv_notifier_add() argument 558 static void hvc_iucv_notifier_hangup(struct hvc_struct *hp, int id) in hvc_iucv_notifier_hangup() argument 595 static void hvc_iucv_notifier_del(struct hvc_struct *hp, int id) in hvc_iucv_notifier_del() argument
|
/drivers/char/agp/ |
D | hp-agp.c | 78 struct _hp_private *hp = &hp_private; in hp_zx1_ioc_shared() local 88 hp->io_tlb_ps = readq(hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_ioc_shared() 89 switch (hp->io_tlb_ps) { in hp_zx1_ioc_shared() 90 case 0: hp->io_tlb_shift = 12; break; in hp_zx1_ioc_shared() 91 case 1: hp->io_tlb_shift = 13; break; in hp_zx1_ioc_shared() 92 case 2: hp->io_tlb_shift = 14; break; in hp_zx1_ioc_shared() 93 case 3: hp->io_tlb_shift = 16; break; in hp_zx1_ioc_shared() 96 "configuration 0x%x\n", hp->io_tlb_ps); in hp_zx1_ioc_shared() 97 hp->gatt = NULL; in hp_zx1_ioc_shared() 98 hp->gatt_entries = 0; in hp_zx1_ioc_shared() [all …]
|
D | Makefile | 12 obj-$(CONFIG_AGP_HP_ZX1) += hp-agp.o
|
/drivers/char/rio/ |
D | rio_linux.c | 701 static struct vpd_prom *get_VPD_PROM(struct Host *hp) in get_VPD_PROM() argument 708 rio_dprintk(RIO_DEBUG_PROBE, "Going to verify vpd prom at %p.\n", hp->Caddr + RIO_VPD_ROM); in get_VPD_PROM() 712 *p++ = readb(hp->Caddr + RIO_VPD_ROM + i * 2); in get_VPD_PROM() 929 struct Host *hp; in rio_init() local 981 hp = &p->RIOHosts[p->RIONumHosts]; in rio_init() 982 hp->PaddrP = pci_resource_start(pdev, 2); in rio_init() 983 hp->Ivec = pdev->irq; in rio_init() 984 if (((1 << hp->Ivec) & rio_irqmask) == 0) in rio_init() 985 hp->Ivec = 0; in rio_init() 986 hp->Caddr = ioremap(p->RIOHosts[p->RIONumHosts].PaddrP, RIO_WINDOW_LEN); in rio_init() [all …]
|
/drivers/scsi/ |
D | sg.c | 347 sg_io_hdr_t *hp; in sg_read() local 418 hp = &srp->header; in sg_read() 427 old_hdr->reply_len = (int) hp->timeout; in sg_read() 429 old_hdr->pack_id = hp->pack_id; in sg_read() 431 ((srp->data.cmd_opcode >= 0xc0) && (12 == hp->cmd_len)) ? 1 : 0; in sg_read() 432 old_hdr->target_status = hp->masked_status; in sg_read() 433 old_hdr->host_status = hp->host_status; in sg_read() 434 old_hdr->driver_status = hp->driver_status; in sg_read() 435 if ((CHECK_CONDITION & hp->masked_status) || in sg_read() 436 (DRIVER_SENSE & hp->driver_status)) in sg_read() [all …]
|
/drivers/sh/ |
D | intc.c | 269 static struct intc_handle_int *intc_find_irq(struct intc_handle_int *hp, in intc_find_irq() argument 288 if ((hp + i)->irq != irq) in intc_find_irq() 291 return hp + i; in intc_find_irq() 554 struct intc_handle_int *hp; in intc_register_irq() local 595 hp = d->prio + d->nr_prio; in intc_register_irq() 596 hp->irq = irq; in intc_register_irq() 597 hp->handle = data[1]; in intc_register_irq() 605 hp->handle &= ~_INTC_MK(0x0f, 0, 0, 0, 0, 0); in intc_register_irq() 606 hp->handle |= _INTC_MK(REG_FN_ERR, 0, 0, 0, 0, 0); in intc_register_irq()
|
/drivers/scsi/fcoe/ |
D | libfcoe.c | 385 struct fcoe_hdr *hp; in fcoe_xmit() local 480 hp = (struct fcoe_hdr *)(eh + 1); in fcoe_xmit() 481 memset(hp, 0, sizeof(*hp)); in fcoe_xmit() 483 FC_FCOE_ENCAPS_VER(hp, FC_FCOE_VER); in fcoe_xmit() 484 hp->fcoe_sof = sof; in fcoe_xmit() 532 struct fcoe_hdr *hp; in fcoe_percpu_receive_thread() local 582 hp = (struct fcoe_hdr *) skb_network_header(skb); in fcoe_percpu_receive_thread() 585 if (unlikely(FC_FCOE_DECAPS_VER(hp) != FC_FCOE_VER)) { in fcoe_percpu_receive_thread() 589 FC_FCOE_DECAPS_VER(hp)); in fcoe_percpu_receive_thread() 607 fr_sof(fp) = hp->fcoe_sof; in fcoe_percpu_receive_thread()
|
/drivers/staging/et131x/ |
D | et1310_tx.h | 99 u32 hp:1; // bit 10(Packet is a Huge packet) member 121 u32 hp:1; // bit 10(Packet is a Huge packet)
|
D | et1310_rx.h | 150 u32 hp:1; // bit 0(hash pass) member 152 u32 hp:1; // bit 0(hash pass)
|
/drivers/media/video/pvrusb2/ |
D | pvrusb2-i2c-core.c | 585 struct pvr2_i2c_handler *hp = cp->handler; in handler_check() local 586 if (!hp) return 0; in handler_check() 587 if (!hp->func_table->check) return 0; in handler_check() 588 return hp->func_table->check(hp->func_data) != 0; in handler_check()
|
/drivers/platform/x86/ |
D | Makefile | 11 obj-$(CONFIG_HP_WMI) += hp-wmi.o
|