/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 288 static inline u32 hme_read_desc32(struct happy_meal *hp, hme32 *p) in hme_read_desc32() argument 297 static void BB_PUT_BIT(struct happy_meal *hp, void __iomem *tregs, int bit) in BB_PUT_BIT() argument 299 hme_write32(hp, tregs + TCVR_BBDATA, bit); in BB_PUT_BIT() [all …]
|
D | ldmvsw.c | 167 static struct vnet *vsw_get_vnet(struct mdesc_handle *hp, in vsw_get_vnet() argument 178 mdesc_for_each_arc(a, hp, port_node, MDESC_ARC_TYPE_BACK) { in vsw_get_vnet() 179 u64 target = mdesc_arc_target(hp, a); in vsw_get_vnet() 182 name = mdesc_get_property(hp, target, "name", NULL); in vsw_get_vnet() 186 local_mac = mdesc_get_property(hp, target, in vsw_get_vnet() 188 cfghandle = mdesc_get_property(hp, target, in vsw_get_vnet() 281 struct mdesc_handle *hp; in vsw_port_probe() local 291 hp = mdesc_grab(); in vsw_port_probe() 293 if (!hp) in vsw_port_probe() 296 rmac = mdesc_get_property(hp, vdev->mp, remote_macaddr_prop, &len); in vsw_port_probe() [all …]
|
D | sunvnet.c | 208 struct hlist_head *hp = &vp->port_hash[hash]; in __tx_port_find() local 211 hlist_for_each_entry_rcu(port, hp, hash) { in __tx_port_find() 383 static struct vnet *vnet_find_parent(struct mdesc_handle *hp, in vnet_find_parent() argument 390 mdesc_for_each_arc(a, hp, port_node, MDESC_ARC_TYPE_BACK) { in vnet_find_parent() 391 u64 target = mdesc_arc_target(hp, a); in vnet_find_parent() 394 name = mdesc_get_property(hp, target, "name", NULL); in vnet_find_parent() 398 local_mac = mdesc_get_property(hp, target, in vnet_find_parent() 425 struct mdesc_handle *hp; in vnet_port_probe() local 432 hp = mdesc_grab(); in vnet_port_probe() 434 if (!hp) in vnet_port_probe() [all …]
|
D | sunhme.h | 365 #define TX_BUFFS_AVAIL(hp) \ argument 366 (((hp)->tx_old <= (hp)->tx_new) ? \ 367 (hp)->tx_old + (TX_RING_SIZE - 1) - (hp)->tx_new : \ 368 (hp)->tx_old - (hp)->tx_new - 1)
|
/drivers/tty/hvc/ |
D | hvc_console.c | 92 struct hvc_struct *hp; in hvc_get_by_index() local 97 list_for_each_entry(hp, &hvc_structs, next) { in hvc_get_by_index() 98 spin_lock_irqsave(&hp->lock, flags); in hvc_get_by_index() 99 if (hp->index == index) { in hvc_get_by_index() 100 tty_port_get(&hp->port); in hvc_get_by_index() 101 spin_unlock_irqrestore(&hp->lock, flags); in hvc_get_by_index() 103 return hp; in hvc_get_by_index() 105 spin_unlock_irqrestore(&hp->lock, flags); in hvc_get_by_index() 107 hp = NULL; in hvc_get_by_index() 110 return hp; in hvc_get_by_index() [all …]
|
D | hvsi.c | 87 static int (*hvsi_wait)(struct hvsi_struct *hp, int state); 99 static inline int is_console(struct hvsi_struct *hp) in is_console() argument 101 return hp->flags & HVSI_CONSOLE; in is_console() 104 static inline int is_open(struct hvsi_struct *hp) in is_open() argument 107 return (hp->state == HVSI_OPEN) in is_open() 108 || (hp->state == HVSI_WAIT_FOR_MCTRL_RESPONSE); in is_open() 111 static inline void print_state(struct hvsi_struct *hp) in print_state() argument 122 const char *name = (hp->state < ARRAY_SIZE(state_names)) in print_state() 123 ? state_names[hp->state] : "UNKNOWN"; in print_state() 125 pr_debug("hvsi%i: state = %s\n", hp->index, name); in print_state() [all …]
|
D | hvc_console.h | 60 int (*notifier_add)(struct hvc_struct *hp, int irq); 61 void (*notifier_del)(struct hvc_struct *hp, int irq); 62 void (*notifier_hangup)(struct hvc_struct *hp, int irq); 65 int (*tiocmget)(struct hvc_struct *hp); 66 int (*tiocmset)(struct hvc_struct *hp, unsigned int set, unsigned int clear); 69 void (*dtr_rts)(struct hvc_struct *hp, int raise); 80 extern int hvc_remove(struct hvc_struct *hp); 83 int hvc_poll(struct hvc_struct *hp); 87 extern void __hvc_resize(struct hvc_struct *hp, struct winsize ws); 89 static inline void hvc_resize(struct hvc_struct *hp, struct winsize ws) in hvc_resize() argument [all …]
|
D | hvc_opal.c | 81 static int hvc_opal_hvsi_open(struct hvc_struct *hp, int data) in hvc_opal_hvsi_open() argument 83 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open() 86 pr_devel("HVSI@%x: do open !\n", hp->vtermno); in hvc_opal_hvsi_open() 88 rc = notifier_add_irq(hp, data); in hvc_opal_hvsi_open() 92 return hvsilib_open(&pv->hvsi, hp); in hvc_opal_hvsi_open() 95 static void hvc_opal_hvsi_close(struct hvc_struct *hp, int data) in hvc_opal_hvsi_close() argument 97 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close() 99 pr_devel("HVSI@%x: do close !\n", hp->vtermno); in hvc_opal_hvsi_close() 101 hvsilib_close(&pv->hvsi, hp); in hvc_opal_hvsi_close() 103 notifier_del_irq(hp, data); in hvc_opal_hvsi_close() [all …]
|
D | hvc_irq.c | 29 int notifier_add_irq(struct hvc_struct *hp, int irq) in notifier_add_irq() argument 34 hp->irq_requested = 0; in notifier_add_irq() 37 rc = request_irq(irq, hvc_handle_interrupt, hp->flags, in notifier_add_irq() 38 "hvc_console", hp); in notifier_add_irq() 40 hp->irq_requested = 1; in notifier_add_irq() 44 void notifier_del_irq(struct hvc_struct *hp, int irq) in notifier_del_irq() argument 46 if (!hp->irq_requested) in notifier_del_irq() 48 free_irq(irq, hp); in notifier_del_irq() 49 hp->irq_requested = 0; in notifier_del_irq() 52 void notifier_hangup_irq(struct hvc_struct *hp, int irq) in notifier_hangup_irq() argument [all …]
|
D | hvc_vio.c | 156 static int hvterm_hvsi_open(struct hvc_struct *hp, int data) in hvterm_hvsi_open() argument 158 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_open() 163 rc = notifier_add_irq(hp, data); in hvterm_hvsi_open() 167 return hvsilib_open(&pv->hvsi, hp); in hvterm_hvsi_open() 170 static void hvterm_hvsi_close(struct hvc_struct *hp, int data) in hvterm_hvsi_close() argument 172 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_close() 176 hvsilib_close(&pv->hvsi, hp); in hvterm_hvsi_close() 178 notifier_del_irq(hp, data); in hvterm_hvsi_close() 181 static void hvterm_hvsi_hangup(struct hvc_struct *hp, int data) in hvterm_hvsi_hangup() argument 183 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_hangup() [all …]
|
D | hvc_udbg.c | 55 struct hvc_struct *hp; in hvc_udbg_init() local 62 hp = hvc_alloc(0, 0, &hvc_udbg_ops, 16); in hvc_udbg_init() 63 if (IS_ERR(hp)) in hvc_udbg_init() 64 return PTR_ERR(hp); in hvc_udbg_init() 66 hvc_udbg_dev = hp; in hvc_udbg_init()
|
D | hvc_rtas.c | 68 struct hvc_struct *hp; in hvc_rtas_init() local 84 hp = hvc_alloc(hvc_rtas_cookie, 0, &hvc_rtas_get_put_ops, 16); in hvc_rtas_init() 85 if (IS_ERR(hp)) in hvc_rtas_init() 86 return PTR_ERR(hp); in hvc_rtas_init() 88 hvc_rtas_dev = hp; in hvc_rtas_init()
|
D | hvsi_lib.c | 374 int hvsilib_open(struct hvsi_priv *pv, struct hvc_struct *hp) in hvsilib_open() argument 379 pv->tty = tty_port_tty_get(&hp->port); in hvsilib_open() 386 void hvsilib_close(struct hvsi_priv *pv, struct hvc_struct *hp) in hvsilib_close() argument 397 spin_lock_irqsave(&hp->lock, flags); in hvsilib_close() 399 spin_unlock_irqrestore(&hp->lock, flags); in hvsilib_close()
|
/drivers/char/agp/ |
D | hp-agp.c | 76 struct _hp_private *hp = &hp_private; in hp_zx1_ioc_shared() local 86 hp->io_tlb_ps = readq(hp->ioc_regs+HP_ZX1_TCNFG); in hp_zx1_ioc_shared() 87 switch (hp->io_tlb_ps) { in hp_zx1_ioc_shared() 88 case 0: hp->io_tlb_shift = 12; break; in hp_zx1_ioc_shared() 89 case 1: hp->io_tlb_shift = 13; break; in hp_zx1_ioc_shared() 90 case 2: hp->io_tlb_shift = 14; break; in hp_zx1_ioc_shared() 91 case 3: hp->io_tlb_shift = 16; break; in hp_zx1_ioc_shared() 94 "configuration 0x%x\n", hp->io_tlb_ps); in hp_zx1_ioc_shared() 95 hp->gatt = NULL; in hp_zx1_ioc_shared() 96 hp->gatt_entries = 0; in hp_zx1_ioc_shared() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | transobj.c | 311 static int mlx5_hairpin_create_queues(struct mlx5_hairpin *hp, in mlx5_hairpin_create_queues() argument 316 for (i = 0; i < hp->num_channels; i++) { in mlx5_hairpin_create_queues() 317 err = mlx5_hairpin_create_rq(hp->func_mdev, params, &hp->rqn[i]); in mlx5_hairpin_create_queues() 322 for (i = 0; i < hp->num_channels; i++) { in mlx5_hairpin_create_queues() 323 err = mlx5_hairpin_create_sq(hp->peer_mdev, params, &hp->sqn[i]); in mlx5_hairpin_create_queues() 332 mlx5_core_destroy_sq(hp->peer_mdev, hp->sqn[j]); in mlx5_hairpin_create_queues() 333 i = hp->num_channels; in mlx5_hairpin_create_queues() 336 mlx5_core_destroy_rq(hp->func_mdev, hp->rqn[j]); in mlx5_hairpin_create_queues() 340 static void mlx5_hairpin_destroy_queues(struct mlx5_hairpin *hp) in mlx5_hairpin_destroy_queues() argument 344 for (i = 0; i < hp->num_channels; i++) { in mlx5_hairpin_destroy_queues() [all …]
|
D | en_tc.c | 357 struct mlx5e_hairpin *hp; member 474 static int mlx5e_hairpin_create_transport(struct mlx5e_hairpin *hp) in mlx5e_hairpin_create_transport() argument 483 err = mlx5_core_alloc_transport_domain(hp->func_mdev, &hp->tdn); in mlx5e_hairpin_create_transport() 487 mlx5e_tir_builder_build_inline(builder, hp->tdn, hp->pair->rqn[0]); in mlx5e_hairpin_create_transport() 488 err = mlx5e_tir_init(&hp->direct_tir, builder, hp->func_mdev, false); in mlx5e_hairpin_create_transport() 497 mlx5_core_dealloc_transport_domain(hp->func_mdev, hp->tdn); in mlx5e_hairpin_create_transport() 502 static void mlx5e_hairpin_destroy_transport(struct mlx5e_hairpin *hp) in mlx5e_hairpin_destroy_transport() argument 504 mlx5e_tir_destroy(&hp->direct_tir); in mlx5e_hairpin_destroy_transport() 505 mlx5_core_dealloc_transport_domain(hp->func_mdev, hp->tdn); in mlx5e_hairpin_destroy_transport() 508 static int mlx5e_hairpin_create_indirect_rqt(struct mlx5e_hairpin *hp) in mlx5e_hairpin_create_indirect_rqt() argument [all …]
|
/drivers/scsi/ |
D | sg.c | 424 struct compat_sg_io_hdr __user *hp = buf; in get_sg_io_pack_id() local 426 return get_user(*pack_id, &hp->pack_id); in get_sg_io_pack_id() 430 struct sg_io_hdr __user *hp = buf; in get_sg_io_pack_id() local 432 return get_user(*pack_id, &hp->pack_id); in get_sg_io_pack_id() 449 sg_io_hdr_t *hp; in sg_read() local 485 hp = &srp->header; in sg_read() 490 old_hdr->reply_len = (int) hp->timeout; in sg_read() 492 old_hdr->pack_id = hp->pack_id; in sg_read() 494 ((srp->data.cmd_opcode >= 0xc0) && (12 == hp->cmd_len)) ? 1 : 0; in sg_read() 495 old_hdr->target_status = hp->masked_status; in sg_read() [all …]
|
/drivers/pci/hotplug/ |
D | acpiphp.h | 109 struct acpi_hotplug_context hp; member 115 static inline struct acpiphp_context *to_acpiphp_context(struct acpi_hotplug_context *hp) in to_acpiphp_context() argument 117 return container_of(hp, struct acpiphp_context, hp); in to_acpiphp_context() 127 return func_to_context(func)->hp.self; in func_to_acpi_device() 136 struct acpi_hotplug_context hp; member 140 static inline struct acpiphp_root_context *to_acpiphp_root_context(struct acpi_hotplug_context *hp) in to_acpiphp_root_context() argument 142 return container_of(hp, struct acpiphp_root_context, hp); in to_acpiphp_root_context()
|
D | acpiphp_glue.c | 68 context->hp.notify = acpiphp_hotplug_notify; in acpiphp_init_context() 69 context->hp.fixup = acpiphp_post_dock_fixup; in acpiphp_init_context() 70 acpi_set_hp_context(adev, &context->hp); in acpiphp_init_context() 84 if (!adev->hp) in acpiphp_get_context() 87 context = to_acpiphp_context(adev->hp); in acpiphp_get_context() 106 context->hp.self->hp = NULL; in acpiphp_put_context() 348 adev->hp->notify = NULL; in cleanup_bridge() 349 adev->hp->fixup = NULL; in cleanup_bridge() 756 if (adev->hp) { in acpiphp_check_host_bridge() 757 bridge = to_acpiphp_root_context(adev->hp)->root_bridge; in acpiphp_check_host_bridge() [all …]
|
/drivers/net/wireless/ath/ath11k/ |
D | hal.c | 651 u32 tp, hp; in ath11k_hal_srng_dst_num_free() local 658 hp = *srng->u.dst_ring.hp_addr; in ath11k_hal_srng_dst_num_free() 659 srng->u.dst_ring.cached_hp = hp; in ath11k_hal_srng_dst_num_free() 661 hp = srng->u.dst_ring.cached_hp; in ath11k_hal_srng_dst_num_free() 664 if (hp >= tp) in ath11k_hal_srng_dst_num_free() 665 return (hp - tp) / srng->entry_size; in ath11k_hal_srng_dst_num_free() 667 return (srng->ring_size - tp + hp) / srng->entry_size; in ath11k_hal_srng_dst_num_free() 674 u32 tp, hp; in ath11k_hal_srng_src_num_free() local 678 hp = srng->u.src_ring.hp; in ath11k_hal_srng_src_num_free() 687 if (tp > hp) in ath11k_hal_srng_src_num_free() [all …]
|
/drivers/spi/ |
D | spi-bcm-qspi.c | 166 unsigned int hp; member 384 const struct spi_mem_op *op, int hp) in bcm_qspi_bspi_set_flex_mode() argument 393 width, addrlen, hp); in bcm_qspi_bspi_set_flex_mode() 409 if (hp) { in bcm_qspi_bspi_set_flex_mode() 416 if (hp) { in bcm_qspi_bspi_set_flex_mode() 431 const struct spi_mem_op *op, int hp) in bcm_qspi_bspi_set_override() argument 438 width, addrlen, hp); in bcm_qspi_bspi_set_override() 476 const struct spi_mem_op *op, int hp) in bcm_qspi_bspi_set_mode() argument 493 error = bcm_qspi_bspi_set_override(qspi, op, hp); in bcm_qspi_bspi_set_mode() 498 error = bcm_qspi_bspi_set_flex_mode(qspi, op, hp); in bcm_qspi_bspi_set_mode() [all …]
|
/drivers/clk/pxa/ |
D | clk-pxa.c | 49 struct clk_fixed_factor hp; member 65 fix = &pclk->hp; in cken_recalc_rate() 107 pxa_clk->hp = clks[i].hp; in clk_pxa_cken_init()
|
/drivers/ata/ |
D | libata-acpi.c | 43 struct acpi_hotplug_context hp; member 50 #define ata_hotplug_data(context) (container_of((context), struct ata_acpi_hotplug_context, hp)->da… 137 struct ata_device *dev = ata_hotplug_data(adev->hp).dev; in ata_acpi_dev_notify_dock() 144 ata_acpi_handle_hotplug(ata_hotplug_data(adev->hp).ap, NULL, event); in ata_acpi_ap_notify_dock() 169 ata_acpi_uevent(ata_hotplug_data(adev->hp).ap, NULL, event); in ata_acpi_ap_uevent() 174 struct ata_device *dev = ata_hotplug_data(adev->hp).dev; in ata_acpi_dev_uevent() 194 if (!adev || adev->hp) in ata_acpi_bind_port() 202 acpi_initialize_hp_context(adev, &context->hp, ata_acpi_ap_notify_dock, in ata_acpi_bind_port() 236 if (!adev || adev->hp) in ata_acpi_bind_dev() 244 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()
|