/drivers/net/ethernet/sun/ |
D | sunhme.c | 110 static __inline__ void tx_add_log(struct happy_meal *hp, unsigned int a, unsigned int s) in tx_add_log() argument 118 tlp->tx_new = hp->tx_new; in tx_add_log() 119 tlp->tx_old = hp->tx_old; in tx_add_log() 138 static __inline__ void tx_dump_ring(struct happy_meal *hp) in tx_dump_ring() argument 140 struct hmeal_init_block *hb = hp->happy_block; in tx_dump_ring() 154 #define tx_add_log(hp, a, s) do { } while(0) argument 156 #define tx_dump_ring(hp) do { } while(0) argument 304 static inline u32 hme_read_desc32(struct happy_meal *hp, hme32 *p) in hme_read_desc32() argument 321 static void BB_PUT_BIT(struct happy_meal *hp, void __iomem *tregs, int bit) in BB_PUT_BIT() argument 323 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 | 759 struct hlist_head *hp = &vp->port_hash[hash]; in __tx_port_find() local 762 hlist_for_each_entry(port, hp, hash) { in __tx_port_find() 1448 static struct vnet *vnet_find_parent(struct mdesc_handle *hp, in vnet_find_parent() argument 1454 mdesc_for_each_arc(a, hp, port_node, MDESC_ARC_TYPE_BACK) { in vnet_find_parent() 1455 u64 target = mdesc_arc_target(hp, a); in vnet_find_parent() 1458 name = mdesc_get_property(hp, target, "name", NULL); in vnet_find_parent() 1462 local_mac = mdesc_get_property(hp, target, in vnet_find_parent() 1494 struct mdesc_handle *hp; in vnet_port_probe() local 1503 hp = mdesc_grab(); in vnet_port_probe() 1505 vp = vnet_find_parent(hp, vdev->mp); in vnet_port_probe() [all …]
|
/drivers/tty/hvc/ |
D | hvsi.c | 100 static int (*hvsi_wait)(struct hvsi_struct *hp, int state); 112 static inline int is_console(struct hvsi_struct *hp) in is_console() argument 114 return hp->flags & HVSI_CONSOLE; in is_console() 117 static inline int is_open(struct hvsi_struct *hp) in is_open() argument 120 return (hp->state == HVSI_OPEN) in is_open() 121 || (hp->state == HVSI_WAIT_FOR_MCTRL_RESPONSE); in is_open() 124 static inline void print_state(struct hvsi_struct *hp) in print_state() argument 135 const char *name = (hp->state < ARRAY_SIZE(state_names)) in print_state() 136 ? state_names[hp->state] : "UNKNOWN"; in print_state() 138 pr_debug("hvsi%i: state = %s\n", hp->index, name); in print_state() [all …]
|
D | hvc_console.c | 106 struct hvc_struct *hp; in hvc_get_by_index() local 111 list_for_each_entry(hp, &hvc_structs, next) { in hvc_get_by_index() 112 spin_lock_irqsave(&hp->lock, flags); in hvc_get_by_index() 113 if (hp->index == index) { in hvc_get_by_index() 114 tty_port_get(&hp->port); in hvc_get_by_index() 115 spin_unlock_irqrestore(&hp->lock, flags); in hvc_get_by_index() 117 return hp; in hvc_get_by_index() 119 spin_unlock_irqrestore(&hp->lock, flags); in hvc_get_by_index() 121 hp = NULL; in hvc_get_by_index() 124 return hp; in hvc_get_by_index() [all …]
|
D | hvc_tile.c | 81 static int hvc_tile_notifier_add_irq(struct hvc_struct *hp, int irq) in hvc_tile_notifier_add_irq() argument 87 rc = notifier_add_irq(hp, irq); in hvc_tile_notifier_add_irq() 97 notifier_del_irq(hp, irq); in hvc_tile_notifier_add_irq() 102 static void hvc_tile_notifier_del_irq(struct hvc_struct *hp, int irq) in hvc_tile_notifier_del_irq() argument 109 notifier_del_irq(hp, irq); in hvc_tile_notifier_del_irq() 112 static void hvc_tile_notifier_hangup_irq(struct hvc_struct *hp, int irq) in hvc_tile_notifier_hangup_irq() argument 114 hvc_tile_notifier_del_irq(hp, irq); in hvc_tile_notifier_hangup_irq() 132 struct hvc_struct *hp; in hvc_tile_probe() local 141 hp = hvc_alloc(0, tile_hvc_irq, &hvc_tile_get_put_ops, 128); in hvc_tile_probe() 142 if (IS_ERR(hp)) { in hvc_tile_probe() [all …]
|
D | hvc_console.h | 71 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, struct winsize ws) in hvc_resize() argument [all …]
|
D | hvc_opal.c | 94 static int hvc_opal_hvsi_open(struct hvc_struct *hp, int data) in hvc_opal_hvsi_open() argument 96 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open() 99 pr_devel("HVSI@%x: do open !\n", hp->vtermno); in hvc_opal_hvsi_open() 101 rc = notifier_add_irq(hp, data); in hvc_opal_hvsi_open() 105 return hvsilib_open(&pv->hvsi, hp); in hvc_opal_hvsi_open() 108 static void hvc_opal_hvsi_close(struct hvc_struct *hp, int data) in hvc_opal_hvsi_close() argument 110 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close() 112 pr_devel("HVSI@%x: do close !\n", hp->vtermno); in hvc_opal_hvsi_close() 114 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_close() 116 notifier_del_irq(hp, data); in hvc_opal_hvsi_close() [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_vio.c | 163 static int hvterm_hvsi_open(struct hvc_struct *hp, int data) in hvterm_hvsi_open() argument 165 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_open() 170 rc = notifier_add_irq(hp, data); in hvterm_hvsi_open() 174 return hvsilib_open(&pv->hvsi, hp); in hvterm_hvsi_open() 177 static void hvterm_hvsi_close(struct hvc_struct *hp, int data) in hvterm_hvsi_close() argument 179 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_close() 183 hvsilib_close(&pv->hvsi, hp); in hvterm_hvsi_close() 185 notifier_del_irq(hp, data); in hvterm_hvsi_close() 188 void hvterm_hvsi_hangup(struct hvc_struct *hp, int data) in hvterm_hvsi_hangup() argument 190 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_hangup() [all …]
|
D | hvc_udbg.c | 68 struct hvc_struct *hp; in hvc_udbg_init() local 75 hp = hvc_alloc(0, 0, &hvc_udbg_ops, 16); in hvc_udbg_init() 76 if (IS_ERR(hp)) in hvc_udbg_init() 77 return PTR_ERR(hp); in hvc_udbg_init() 79 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, 0, &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, 0, &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 | hvsi_lib.c | 373 int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp) in hvsilib_open() argument 378 pv->tty = tty_port_tty_get(&hp->port); in hvsilib_open() 385 void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp) in hvsilib_close() argument 396 spin_lock_irqsave(&hp->lock, flags); in hvsilib_close() 398 spin_unlock_irqrestore(&hp->lock, flags); in hvsilib_close()
|
/drivers/char/agp/ |
D | hp-agp.c | 79 struct _hp_private *hp = &hp_private; in hp_zx1_ioc_shared() local 89 hp->io_tlb_ps = readq(hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_ioc_shared() 90 switch (hp->io_tlb_ps) { in hp_zx1_ioc_shared() 91 case 0: hp->io_tlb_shift = 12; break; in hp_zx1_ioc_shared() 92 case 1: hp->io_tlb_shift = 13; break; in hp_zx1_ioc_shared() 93 case 2: hp->io_tlb_shift = 14; break; in hp_zx1_ioc_shared() 94 case 3: hp->io_tlb_shift = 16; break; in hp_zx1_ioc_shared() 97 "configuration 0x%x\n", hp->io_tlb_ps); in hp_zx1_ioc_shared() 98 hp->gatt = NULL; in hp_zx1_ioc_shared() 99 hp->gatt_entries = 0; in hp_zx1_ioc_shared() [all …]
|
/drivers/scsi/ |
D | sg.c | 404 sg_io_hdr_t *hp; in sg_read() local 470 hp = &srp->header; in sg_read() 479 old_hdr->reply_len = (int) hp->timeout; in sg_read() 481 old_hdr->pack_id = hp->pack_id; in sg_read() 483 ((srp->data.cmd_opcode >= 0xc0) && (12 == hp->cmd_len)) ? 1 : 0; in sg_read() 484 old_hdr->target_status = hp->masked_status; in sg_read() 485 old_hdr->host_status = hp->host_status; in sg_read() 486 old_hdr->driver_status = hp->driver_status; in sg_read() 487 if ((CHECK_CONDITION & hp->masked_status) || in sg_read() 488 (DRIVER_SENSE & hp->driver_status)) in sg_read() [all …]
|
/drivers/pci/hotplug/ |
D | acpiphp.h | 119 struct acpi_hotplug_context hp; member 125 static inline struct acpiphp_context *to_acpiphp_context(struct acpi_hotplug_context *hp) in to_acpiphp_context() argument 127 return container_of(hp, struct acpiphp_context, hp); in to_acpiphp_context() 137 return func_to_context(func)->hp.self; in func_to_acpi_device() 146 struct acpi_hotplug_context hp; member 150 static inline struct acpiphp_root_context *to_acpiphp_root_context(struct acpi_hotplug_context *hp) in to_acpiphp_root_context() argument 152 return container_of(hp, struct acpiphp_root_context, hp); in to_acpiphp_root_context()
|
D | acpiphp_glue.c | 82 context->hp.notify = acpiphp_hotplug_notify; in acpiphp_init_context() 83 context->hp.fixup = acpiphp_post_dock_fixup; in acpiphp_init_context() 84 acpi_set_hp_context(adev, &context->hp); in acpiphp_init_context() 98 if (!adev->hp) in acpiphp_get_context() 101 context = to_acpiphp_context(adev->hp); in acpiphp_get_context() 120 context->hp.self->hp = NULL; in acpiphp_put_context() 382 adev->hp->notify = NULL; in cleanup_bridge() 383 adev->hp->fixup = NULL; in cleanup_bridge() 733 if (adev->hp) { in acpiphp_check_host_bridge() 734 bridge = to_acpiphp_root_context(adev->hp)->root_bridge; in acpiphp_check_host_bridge() [all …]
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | ptlrpc_internal.h | 120 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, in ptlrpc_nrs_req_get_nolock() argument 134 return ptlrpc_nrs_req_get_nolock0(svcpt, hp, false, force); in ptlrpc_nrs_req_get_nolock() 138 ptlrpc_nrs_req_peek_nolock(struct ptlrpc_service_part *svcpt, bool hp) in ptlrpc_nrs_req_peek_nolock() argument 140 return ptlrpc_nrs_req_get_nolock0(svcpt, hp, true, false); in ptlrpc_nrs_req_peek_nolock() 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) in nrs_svcpt2nrs() argument 170 LASSERT(ergo(hp, nrs_svcpt_has_hp(svcpt))); in nrs_svcpt2nrs() [all …]
|
D | nrs.c | 998 bool hp = false; in nrs_svcpt_cleanup_locked() local 1003 nrs = nrs_svcpt2nrs(svcpt, hp); in nrs_svcpt_cleanup_locked() 1015 if (!hp && nrs_svcpt_has_hp(svcpt)) { in nrs_svcpt_cleanup_locked() 1016 hp = true; in nrs_svcpt_cleanup_locked() 1020 if (hp) in nrs_svcpt_cleanup_locked() 1073 bool hp = false; in nrs_policy_unregister_locked() local 1076 nrs = nrs_svcpt2nrs(svcpt, hp); in nrs_policy_unregister_locked() 1092 if (!hp && nrs_svc_has_hp(svc)) { in nrs_policy_unregister_locked() 1093 hp = true; in nrs_policy_unregister_locked() 1207 bool hp = false; in ptlrpc_nrs_policy_register() local [all …]
|
/drivers/ata/ |
D | libata-acpi.c | 42 struct acpi_hotplug_context hp; member 49 #define ata_hotplug_data(context) (container_of((context), struct ata_acpi_hotplug_context, hp)->da… 136 struct ata_device *dev = ata_hotplug_data(adev->hp).dev; in ata_acpi_dev_notify_dock() 143 ata_acpi_handle_hotplug(ata_hotplug_data(adev->hp).ap, NULL, event); in ata_acpi_ap_notify_dock() 168 ata_acpi_uevent(ata_hotplug_data(adev->hp).ap, NULL, event); in ata_acpi_ap_uevent() 173 struct ata_device *dev = ata_hotplug_data(adev->hp).dev; in ata_acpi_dev_uevent() 193 if (!adev || adev->hp) in ata_acpi_bind_port() 201 acpi_initialize_hp_context(adev, &context->hp, ata_acpi_ap_notify_dock, in ata_acpi_bind_port() 235 if (!adev || adev->hp) in ata_acpi_bind_dev() 243 acpi_initialize_hp_context(adev, &context->hp, ata_acpi_dev_notify_dock, in ata_acpi_bind_dev()
|
/drivers/sh/intc/ |
D | core.c | 78 struct intc_handle_int *hp; in intc_register_irq() local 132 hp = d->prio + d->nr_prio; in intc_register_irq() 133 hp->irq = irq; in intc_register_irq() 134 hp->handle = data[1]; in intc_register_irq() 141 hp->handle &= ~_INTC_MK(0x0f, 0, 0, 0, 0, 0); in intc_register_irq() 142 hp->handle |= _INTC_MK(REG_FN_ERR, 0, 0, 0, 0, 0); in intc_register_irq()
|
D | chip.c | 117 static struct intc_handle_int *intc_find_irq(struct intc_handle_int *hp, in intc_find_irq() argument 126 return bsearch(&key, hp, nr_hp, sizeof(*hp), intc_handle_int_cmp); in intc_find_irq()
|
/drivers/clk/pxa/ |
D | clk-pxa.h | 77 struct clk_fixed_factor hp; member 88 .hp = { .mult = _mult_hp, .div = _div_hp }, \
|
/drivers/acpi/ |
D | dock.c | 118 if (!adev->hp) in dock_hotplug_event() 124 fixup = adev->hp->fixup; in dock_hotplug_event() 133 uevent = adev->hp->uevent; in dock_hotplug_event() 142 notify = adev->hp->notify; in dock_hotplug_event()
|