/kernel/linux/linux-6.6/drivers/net/ethernet/sun/ |
H A D | sunhme.c | 104 static __inline__ void tx_add_log(struct happy_meal *hp, unsigned int a, unsigned int s) 112 tlp->tx_new = hp->tx_new; 113 tlp->tx_old = hp->tx_old; 133 #define tx_add_log(hp, a, s) 252 static inline u32 hme_read_desc32(struct happy_meal *hp, hme32 *p) in hme_read_desc32() argument 261 static void BB_PUT_BIT(struct happy_meal *hp, void __iomem *tregs, int bit) in BB_PUT_BIT() argument 263 hme_write32(hp, tregs + TCVR_BBDATA, bit); in BB_PUT_BIT() 264 hme_write32(hp, tregs + TCVR_BBCLOCK, 0); in BB_PUT_BIT() 265 hme_write32(hp, tregs + TCVR_BBCLOCK, 1); in BB_PUT_BIT() 269 static u32 BB_GET_BIT(struct happy_meal *hp, voi 285 BB_GET_BIT2(struct happy_meal *hp, void __iomem *tregs, int internal) BB_GET_BIT2() argument 303 happy_meal_bb_read(struct happy_meal *hp, void __iomem *tregs, int reg) happy_meal_bb_read() argument 347 happy_meal_bb_write(struct happy_meal *hp, void __iomem *tregs, int reg, unsigned short value) happy_meal_bb_write() argument 392 happy_meal_tcvr_read(struct happy_meal *hp, void __iomem *tregs, int reg) happy_meal_tcvr_read() argument 423 happy_meal_tcvr_write(struct happy_meal *hp, void __iomem *tregs, int reg, unsigned short value) happy_meal_tcvr_write() argument 483 try_next_permutation(struct happy_meal *hp, void __iomem *tregs) try_next_permutation() argument 507 display_link_mode(struct happy_meal *hp, void __iomem *tregs) display_link_mode() argument 518 display_forced_link_mode(struct happy_meal *hp, void __iomem *tregs) display_forced_link_mode() argument 529 set_happy_link_modes(struct happy_meal *hp, void __iomem *tregs) set_happy_link_modes() argument 589 is_lucent_phy(struct happy_meal *hp) is_lucent_phy() argument 606 happy_meal_begin_auto_negotiation(struct happy_meal *hp, void __iomem *tregs, const struct ethtool_link_ksettings *ep) happy_meal_begin_auto_negotiation() argument 724 struct happy_meal *hp = from_timer(hp, t, happy_timer); happy_meal_timer() local 901 happy_meal_tx_reset(struct happy_meal *hp, void __iomem *bregs) happy_meal_tx_reset() argument 921 happy_meal_rx_reset(struct happy_meal *hp, void __iomem *bregs) happy_meal_rx_reset() argument 943 happy_meal_stop(struct happy_meal *hp, void __iomem *gregs) happy_meal_stop() argument 963 happy_meal_get_counters(struct happy_meal *hp, void __iomem *bregs) happy_meal_get_counters() argument 992 happy_meal_tcvr_reset(struct happy_meal *hp, void __iomem *tregs) happy_meal_tcvr_reset() argument 1086 happy_meal_transceiver_check(struct happy_meal *hp, void __iomem *tregs) happy_meal_transceiver_check() argument 1157 happy_meal_clean_rings(struct happy_meal *hp) happy_meal_clean_rings() argument 1209 happy_meal_init_rings(struct happy_meal *hp) happy_meal_init_rings() argument 1256 happy_meal_init(struct happy_meal *hp) happy_meal_init() argument 1532 happy_meal_set_initial_advertisement(struct happy_meal *hp) happy_meal_set_initial_advertisement() argument 1591 happy_meal_is_not_so_happy(struct happy_meal *hp, u32 status) happy_meal_is_not_so_happy() argument 1696 happy_meal_tx(struct happy_meal *hp) happy_meal_tx() argument 1760 happy_meal_rx(struct happy_meal *hp, struct net_device *dev) happy_meal_rx() argument 1866 struct happy_meal *hp = netdev_priv(dev); happy_meal_interrupt() local 1895 struct happy_meal *hp = netdev_priv(dev); happy_meal_open() local 1918 struct happy_meal *hp = netdev_priv(dev); happy_meal_close() local 1936 struct happy_meal *hp = netdev_priv(dev); happy_meal_tx_timeout() local 1952 unmap_partial_tx_skb(struct happy_meal *hp, u32 first_mapping, u32 first_len, u32 first_entry, u32 entry) unmap_partial_tx_skb() argument 1974 struct happy_meal *hp = netdev_priv(dev); happy_meal_start_xmit() local 2076 struct happy_meal *hp = netdev_priv(dev); happy_meal_get_stats() local 2087 struct happy_meal *hp = netdev_priv(dev); happy_meal_set_multicast() local 2124 struct happy_meal *hp = netdev_priv(dev); hme_get_link_ksettings() local 2172 struct happy_meal *hp = netdev_priv(dev); hme_set_link_ksettings() local 2196 struct happy_meal *hp = netdev_priv(dev); hme_get_drvinfo() local 2218 struct happy_meal *hp = netdev_priv(dev); hme_get_link() local 2392 happy_meal_addr_init(struct happy_meal *hp, struct device_node *dp, int qfe_slot) happy_meal_addr_init() argument 2435 happy_meal_common_probe(struct happy_meal *hp, struct device_node *dp) happy_meal_common_probe() argument 2492 struct happy_meal *hp; happy_meal_sbus_probe_one() local 2617 struct happy_meal *hp; happy_meal_pci_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/tty/hvc/ |
H A 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() 131 hvc_flush(struct hvc_struct *hp) hvc_flush() argument 251 struct hvc_struct *hp = container_of(port, struct hvc_struct, port); hvc_port_destruct() local 287 struct hvc_struct *hp; hvc_instantiate() local 327 struct hvc_struct *hp; hvc_install() local 349 struct hvc_struct *hp = tty->driver_data; hvc_open() local 391 struct hvc_struct *hp = tty->driver_data; hvc_close() local 434 struct hvc_struct *hp = tty->driver_data; hvc_cleanup() local 441 struct hvc_struct *hp = tty->driver_data; hvc_hangup() local 476 hvc_push(struct hvc_struct *hp) hvc_push() argument 501 struct hvc_struct *hp = tty->driver_data; hvc_write() local 565 struct hvc_struct *hp; hvc_set_winsz() local 591 struct hvc_struct *hp = tty->driver_data; hvc_write_room() local 601 struct hvc_struct *hp = tty->driver_data; hvc_chars_in_buffer() local 632 __hvc_poll(struct hvc_struct *hp, bool may_sleep) __hvc_poll() argument 762 hvc_poll(struct hvc_struct *hp) hvc_poll() argument 778 __hvc_resize(struct hvc_struct *hp, struct winsize ws) __hvc_resize() argument 793 struct hvc_struct *hp; khvcd() local 838 struct hvc_struct *hp = tty->driver_data; hvc_tiocmget() local 848 struct hvc_struct *hp = tty->driver_data; hvc_tiocmset() local 864 struct hvc_struct *hp = tty->driver_data; hvc_poll_get_char() local 879 struct hvc_struct *hp = tty->driver_data; hvc_poll_put_char() local 915 struct hvc_struct *hp; hvc_alloc() local 979 hvc_remove(struct hvc_struct *hp) hvc_remove() argument [all...] |
H A 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 in print_state() 129 __set_state(struct hvsi_struct *hp, int state) __set_state() argument 136 set_state(struct hvsi_struct *hp, int state) set_state() argument 156 got_packet(const struct hvsi_struct *hp, uint8_t *packet) got_packet() argument 168 compact_inbuf(struct hvsi_struct *hp, uint8_t *read_to) compact_inbuf() argument 216 hvsi_read(struct hvsi_struct *hp, char *buf, int count) hvsi_read() argument 225 hvsi_recv_control(struct hvsi_struct *hp, uint8_t *packet, struct tty_struct *tty, struct hvsi_struct **to_handshake) hvsi_recv_control() argument 254 hvsi_recv_response(struct hvsi_struct *hp, uint8_t *packet) hvsi_recv_response() argument 280 hvsi_version_respond(struct hvsi_struct *hp, uint16_t query_seqno) hvsi_version_respond() argument 305 hvsi_recv_query(struct hvsi_struct *hp, uint8_t *packet) hvsi_recv_query() argument 321 hvsi_insert_chars(struct hvsi_struct *hp, const char *buf, int len) hvsi_insert_chars() argument 350 hvsi_recv_data(struct hvsi_struct *hp, const uint8_t *packet) hvsi_recv_data() argument 388 hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty, struct hvsi_struct **handshake) hvsi_load_chunk() argument 462 hvsi_send_overflow(struct hvsi_struct *hp) hvsi_send_overflow() argument 477 struct hvsi_struct *hp = (struct hvsi_struct *)arg; hvsi_interrupt() local 513 poll_for_state(struct hvsi_struct *hp, int state) poll_for_state() argument 530 wait_for_state(struct hvsi_struct *hp, int state) wait_for_state() argument 540 hvsi_query(struct hvsi_struct *hp, uint16_t verb) hvsi_query() argument 563 hvsi_get_mctrl(struct hvsi_struct *hp) hvsi_get_mctrl() argument 583 hvsi_set_mctrl(struct hvsi_struct *hp, uint16_t mctrl) hvsi_set_mctrl() argument 609 hvsi_drain_input(struct hvsi_struct *hp) hvsi_drain_input() argument 619 hvsi_handshake(struct hvsi_struct *hp) hvsi_handshake() argument 648 struct hvsi_struct *hp = hvsi_handshaker() local 664 hvsi_put_chars(struct hvsi_struct *hp, const char *buf, int count) hvsi_put_chars() argument 684 hvsi_close_protocol(struct hvsi_struct *hp) hvsi_close_protocol() argument 701 struct hvsi_struct *hp; hvsi_open() local 747 hvsi_flush_output(struct hvsi_struct *hp) hvsi_flush_output() argument 764 struct hvsi_struct *hp = tty->driver_data; hvsi_close() local 816 struct hvsi_struct *hp = tty->driver_data; hvsi_hangup() local 830 hvsi_push(struct hvsi_struct *hp) hvsi_push() argument 851 struct hvsi_struct *hp = hvsi_write_worker() local 895 struct hvsi_struct *hp = tty->driver_data; hvsi_write_room() local 902 struct hvsi_struct *hp = tty->driver_data; hvsi_chars_in_buffer() local 910 struct hvsi_struct *hp = tty->driver_data; hvsi_write() local 968 struct hvsi_struct *hp = tty->driver_data; hvsi_throttle() local 977 struct hvsi_struct *hp = tty->driver_data; hvsi_unthrottle() local 995 struct hvsi_struct *hp = tty->driver_data; hvsi_tiocmget() local 1004 struct hvsi_struct *hp = tty->driver_data; hvsi_tiocmset() local 1060 struct hvsi_struct *hp = &hvsi_ports[i]; hvsi_init() local 1084 struct hvsi_struct *hp = &hvsi_ports[i]; hvsi_init() local 1099 struct hvsi_struct *hp = &hvsi_ports[console->index]; hvsi_console_print() local 1140 struct hvsi_struct *hp; hvsi_console_setup() local 1184 struct hvsi_struct *hp; hvsi_console_init() local [all...] |
H A 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, struc argument [all...] |
H A 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, in argument [all...] |
H A 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, dat in hvc_opal_hvsi_close() 106 hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) hvc_opal_hvsi_hangup() argument 117 hvc_opal_hvsi_tiocmget(struct hvc_struct *hp) hvc_opal_hvsi_tiocmget() argument 126 hvc_opal_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, unsigned int clear) hvc_opal_hvsi_tiocmset() argument 156 struct hvc_struct *hp; hvc_opal_probe() local 237 struct hvc_struct *hp = dev_get_drvdata(&dev->dev); hvc_opal_remove() local [all...] |
H A 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 void hvterm_hvsi_hangup(struct hvc_struct *hp, int data) in hvterm_hvsi_hangup() argument 183 struct hvterm_priv *pv = hvterm_privs[hp in hvterm_hvsi_hangup() 192 hvterm_hvsi_tiocmget(struct hvc_struct *hp) hvterm_hvsi_tiocmget() argument 201 hvterm_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, unsigned int clear) hvterm_hvsi_tiocmset() argument 300 struct hvc_struct *hp; hvc_vio_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/tty/hvc/ |
H A 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() 131 hvc_flush(struct hvc_struct *hp) hvc_flush() argument 251 struct hvc_struct *hp = container_of(port, struct hvc_struct, port); hvc_port_destruct() local 287 struct hvc_struct *hp; hvc_instantiate() local 327 struct hvc_struct *hp; hvc_install() local 349 struct hvc_struct *hp = tty->driver_data; hvc_open() local 391 struct hvc_struct *hp = tty->driver_data; hvc_close() local 434 struct hvc_struct *hp = tty->driver_data; hvc_cleanup() local 441 struct hvc_struct *hp = tty->driver_data; hvc_hangup() local 476 hvc_push(struct hvc_struct *hp) hvc_push() argument 501 struct hvc_struct *hp = tty->driver_data; hvc_write() local 565 struct hvc_struct *hp; hvc_set_winsz() local 591 struct hvc_struct *hp = tty->driver_data; hvc_write_room() local 601 struct hvc_struct *hp = tty->driver_data; hvc_chars_in_buffer() local 632 __hvc_poll(struct hvc_struct *hp, bool may_sleep) __hvc_poll() argument 762 hvc_poll(struct hvc_struct *hp) hvc_poll() argument 778 __hvc_resize(struct hvc_struct *hp, struct winsize ws) __hvc_resize() argument 793 struct hvc_struct *hp; khvcd() local 838 struct hvc_struct *hp = tty->driver_data; hvc_tiocmget() local 848 struct hvc_struct *hp = tty->driver_data; hvc_tiocmset() local 864 struct hvc_struct *hp = tty->driver_data; hvc_poll_get_char() local 879 struct hvc_struct *hp = tty->driver_data; hvc_poll_put_char() local 915 struct hvc_struct *hp; hvc_alloc() local 979 hvc_remove(struct hvc_struct *hp) hvc_remove() argument [all...] |
H A 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 in print_state() 129 __set_state(struct hvsi_struct *hp, int state) __set_state() argument 136 set_state(struct hvsi_struct *hp, int state) set_state() argument 156 got_packet(const struct hvsi_struct *hp, uint8_t *packet) got_packet() argument 168 compact_inbuf(struct hvsi_struct *hp, uint8_t *read_to) compact_inbuf() argument 216 hvsi_read(struct hvsi_struct *hp, char *buf, int count) hvsi_read() argument 225 hvsi_recv_control(struct hvsi_struct *hp, uint8_t *packet, struct tty_struct *tty, struct hvsi_struct **to_handshake) hvsi_recv_control() argument 254 hvsi_recv_response(struct hvsi_struct *hp, uint8_t *packet) hvsi_recv_response() argument 280 hvsi_version_respond(struct hvsi_struct *hp, uint16_t query_seqno) hvsi_version_respond() argument 305 hvsi_recv_query(struct hvsi_struct *hp, uint8_t *packet) hvsi_recv_query() argument 321 hvsi_insert_chars(struct hvsi_struct *hp, const char *buf, int len) hvsi_insert_chars() argument 350 hvsi_recv_data(struct hvsi_struct *hp, const uint8_t *packet) hvsi_recv_data() argument 388 hvsi_load_chunk(struct hvsi_struct *hp, struct tty_struct *tty, struct hvsi_struct **handshake) hvsi_load_chunk() argument 462 hvsi_send_overflow(struct hvsi_struct *hp) hvsi_send_overflow() argument 477 struct hvsi_struct *hp = (struct hvsi_struct *)arg; hvsi_interrupt() local 513 poll_for_state(struct hvsi_struct *hp, int state) poll_for_state() argument 530 wait_for_state(struct hvsi_struct *hp, int state) wait_for_state() argument 540 hvsi_query(struct hvsi_struct *hp, uint16_t verb) hvsi_query() argument 563 hvsi_get_mctrl(struct hvsi_struct *hp) hvsi_get_mctrl() argument 583 hvsi_set_mctrl(struct hvsi_struct *hp, uint16_t mctrl) hvsi_set_mctrl() argument 609 hvsi_drain_input(struct hvsi_struct *hp) hvsi_drain_input() argument 619 hvsi_handshake(struct hvsi_struct *hp) hvsi_handshake() argument 648 struct hvsi_struct *hp = hvsi_handshaker() local 664 hvsi_put_chars(struct hvsi_struct *hp, const char *buf, int count) hvsi_put_chars() argument 684 hvsi_close_protocol(struct hvsi_struct *hp) hvsi_close_protocol() argument 701 struct hvsi_struct *hp; hvsi_open() local 747 hvsi_flush_output(struct hvsi_struct *hp) hvsi_flush_output() argument 764 struct hvsi_struct *hp = tty->driver_data; hvsi_close() local 816 struct hvsi_struct *hp = tty->driver_data; hvsi_hangup() local 830 hvsi_push(struct hvsi_struct *hp) hvsi_push() argument 851 struct hvsi_struct *hp = hvsi_write_worker() local 895 struct hvsi_struct *hp = tty->driver_data; hvsi_write_room() local 902 struct hvsi_struct *hp = tty->driver_data; hvsi_chars_in_buffer() local 910 struct hvsi_struct *hp = tty->driver_data; hvsi_write() local 967 struct hvsi_struct *hp = tty->driver_data; hvsi_throttle() local 976 struct hvsi_struct *hp = tty->driver_data; hvsi_unthrottle() local 994 struct hvsi_struct *hp = tty->driver_data; hvsi_tiocmget() local 1003 struct hvsi_struct *hp = tty->driver_data; hvsi_tiocmset() local 1059 struct hvsi_struct *hp = &hvsi_ports[i]; hvsi_init() local 1085 struct hvsi_struct *hp = &hvsi_ports[i]; hvsi_init() local 1100 struct hvsi_struct *hp = &hvsi_ports[console->index]; hvsi_console_print() local 1141 struct hvsi_struct *hp; hvsi_console_setup() local 1185 struct hvsi_struct *hp; hvsi_console_init() local [all...] |
H A 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, bool active); 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, struc argument [all...] |
H A 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, in argument [all...] |
H A 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, dat in hvc_opal_hvsi_close() 106 hvc_opal_hvsi_hangup(struct hvc_struct *hp, int data) hvc_opal_hvsi_hangup() argument 117 hvc_opal_hvsi_tiocmget(struct hvc_struct *hp) hvc_opal_hvsi_tiocmget() argument 126 hvc_opal_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, unsigned int clear) hvc_opal_hvsi_tiocmset() argument 156 struct hvc_struct *hp; hvc_opal_probe() local 237 struct hvc_struct *hp = dev_get_drvdata(&dev->dev); hvc_opal_remove() local [all...] |
H A 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 in hvterm_hvsi_hangup() 192 hvterm_hvsi_tiocmget(struct hvc_struct *hp) hvterm_hvsi_tiocmget() argument 201 hvterm_hvsi_tiocmset(struct hvc_struct *hp, unsigned int set, unsigned int clear) hvterm_hvsi_tiocmset() argument 300 struct hvc_struct *hp; hvc_vio_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/ |
H A 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) 156 #define tx_dump_ring(hp) do { } while(0) 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, treg in BB_PUT_BIT() 345 BB_GET_BIT2(struct happy_meal *hp, void __iomem *tregs, int internal) BB_GET_BIT2() argument 363 happy_meal_bb_read(struct happy_meal *hp, void __iomem *tregs, int reg) happy_meal_bb_read() argument 409 happy_meal_bb_write(struct happy_meal *hp, void __iomem *tregs, int reg, unsigned short value) happy_meal_bb_write() argument 454 happy_meal_tcvr_read(struct happy_meal *hp, void __iomem *tregs, int reg) happy_meal_tcvr_read() argument 486 happy_meal_tcvr_write(struct happy_meal *hp, void __iomem *tregs, int reg, unsigned short value) happy_meal_tcvr_write() argument 546 try_next_permutation(struct happy_meal *hp, void __iomem *tregs) try_next_permutation() argument 570 display_link_mode(struct happy_meal *hp, void __iomem *tregs) display_link_mode() argument 592 display_forced_link_mode(struct happy_meal *hp, void __iomem *tregs) display_forced_link_mode() argument 611 set_happy_link_modes(struct happy_meal *hp, void __iomem *tregs) set_happy_link_modes() argument 673 is_lucent_phy(struct happy_meal *hp) is_lucent_phy() argument 690 struct happy_meal *hp = from_timer(hp, t, happy_timer); happy_meal_timer() local 872 happy_meal_tx_reset(struct happy_meal *hp, void __iomem *bregs) happy_meal_tx_reset() argument 892 happy_meal_rx_reset(struct happy_meal *hp, void __iomem *bregs) happy_meal_rx_reset() argument 914 happy_meal_stop(struct happy_meal *hp, void __iomem *gregs) happy_meal_stop() argument 934 happy_meal_get_counters(struct happy_meal *hp, void __iomem *bregs) happy_meal_get_counters() argument 957 happy_meal_poll_stop(struct happy_meal *hp, void __iomem *tregs) happy_meal_poll_stop() argument 992 happy_meal_tcvr_reset(struct happy_meal *hp, void __iomem *tregs) happy_meal_tcvr_reset() argument 1090 happy_meal_transceiver_check(struct happy_meal *hp, void __iomem *tregs) happy_meal_transceiver_check() argument 1197 happy_meal_clean_rings(struct happy_meal *hp) happy_meal_clean_rings() argument 1249 happy_meal_init_rings(struct happy_meal *hp) happy_meal_init_rings() argument 1298 happy_meal_begin_auto_negotiation(struct happy_meal *hp, void __iomem *tregs, const struct ethtool_link_ksettings *ep) happy_meal_begin_auto_negotiation() argument 1420 happy_meal_init(struct happy_meal *hp) happy_meal_init() argument 1710 happy_meal_set_initial_advertisement(struct happy_meal *hp) happy_meal_set_initial_advertisement() argument 1770 happy_meal_is_not_so_happy(struct happy_meal *hp, u32 status) happy_meal_is_not_so_happy() argument 1884 happy_meal_mif_interrupt(struct happy_meal *hp) happy_meal_mif_interrupt() argument 1918 happy_meal_tx(struct happy_meal *hp) happy_meal_tx() argument 1990 happy_meal_rx(struct happy_meal *hp, struct net_device *dev) happy_meal_rx() argument 2100 struct happy_meal *hp = netdev_priv(dev); happy_meal_interrupt() local 2143 struct happy_meal *hp = netdev_priv(dev); quattro_sbus_interrupt() local 2188 struct happy_meal *hp = netdev_priv(dev); happy_meal_open() local 2221 struct happy_meal *hp = netdev_priv(dev); happy_meal_close() local 2250 struct happy_meal *hp = netdev_priv(dev); happy_meal_tx_timeout() local 2266 unmap_partial_tx_skb(struct happy_meal *hp, u32 first_mapping, u32 first_len, u32 first_entry, u32 entry) unmap_partial_tx_skb() argument 2288 struct happy_meal *hp = netdev_priv(dev); happy_meal_start_xmit() local 2391 struct happy_meal *hp = netdev_priv(dev); happy_meal_get_stats() local 2402 struct happy_meal *hp = netdev_priv(dev); happy_meal_set_multicast() local 2439 struct happy_meal *hp = netdev_priv(dev); hme_get_link_ksettings() local 2487 struct happy_meal *hp = netdev_priv(dev); hme_set_link_ksettings() local 2511 struct happy_meal *hp = netdev_priv(dev); hme_get_drvinfo() local 2534 struct happy_meal *hp = netdev_priv(dev); hme_get_link() local 2685 struct happy_meal *hp; happy_meal_sbus_probe_one() local 2990 struct happy_meal *hp; happy_meal_pci_probe() local 3221 struct happy_meal *hp = pci_get_drvdata(pdev); happy_meal_pci_remove() local 3291 struct happy_meal *hp = platform_get_drvdata(op); hme_sbus_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/char/agp/ |
H A D | hp-agp.c | 6 * Bjorn Helgaas <bjorn.helgaas@hp.com> 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 in hp_zx1_ioc_shared() 126 struct _hp_private *hp = &hp_private; hp_zx1_ioc_owner() local 162 struct _hp_private *hp = &hp_private; hp_zx1_ioc_init() local 206 struct _hp_private *hp = &hp_private; hp_zx1_lba_init() local 240 struct _hp_private *hp = &hp_private; hp_zx1_configure() local 265 struct _hp_private *hp = &hp_private; hp_zx1_cleanup() local 281 struct _hp_private *hp = &hp_private; hp_zx1_tlbflush() local 290 struct _hp_private *hp = &hp_private; hp_zx1_create_gatt_table() local 318 struct _hp_private *hp = &hp_private; hp_zx1_free_gatt_table() local 331 struct _hp_private *hp = &hp_private; hp_zx1_insert_memory() local 378 struct _hp_private *hp = &hp_private; hp_zx1_remove_memory() local 405 struct _hp_private *hp = &hp_private; hp_zx1_enable() local [all...] |
/kernel/linux/linux-6.6/drivers/char/agp/ |
H A D | hp-agp.c | 6 * Bjorn Helgaas <bjorn.helgaas@hp.com> 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 in hp_zx1_ioc_shared() 126 struct _hp_private *hp = &hp_private; hp_zx1_ioc_owner() local 162 struct _hp_private *hp = &hp_private; hp_zx1_ioc_init() local 206 struct _hp_private *hp = &hp_private; hp_zx1_lba_init() local 240 struct _hp_private *hp = &hp_private; hp_zx1_configure() local 265 struct _hp_private *hp = &hp_private; hp_zx1_cleanup() local 281 struct _hp_private *hp = &hp_private; hp_zx1_tlbflush() local 290 struct _hp_private *hp = &hp_private; hp_zx1_create_gatt_table() local 318 struct _hp_private *hp = &hp_private; hp_zx1_free_gatt_table() local 331 struct _hp_private *hp = &hp_private; hp_zx1_insert_memory() local 378 struct _hp_private *hp = &hp_private; hp_zx1_remove_memory() local 405 struct _hp_private *hp = &hp_private; hp_zx1_enable() local [all...] |
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | mdesc.c | 149 static void mdesc_handle_init(struct mdesc_handle *hp, in mdesc_handle_init() argument 153 BUG_ON(((unsigned long)&hp->mdesc) & (16UL - 1)); in mdesc_handle_init() 155 memset(hp, 0, handle_size); in mdesc_handle_init() 156 INIT_LIST_HEAD(&hp->list); in mdesc_handle_init() 157 hp->self_base = base; in mdesc_handle_init() 158 refcount_set(&hp->refcnt, 1); in mdesc_handle_init() 159 hp->handle_size = handle_size; in mdesc_handle_init() 165 struct mdesc_handle *hp; in mdesc_memblock_alloc() local 175 hp = NULL; in mdesc_memblock_alloc() 177 hp in mdesc_memblock_alloc() 183 mdesc_memblock_free(struct mdesc_handle *hp) mdesc_memblock_free() argument 204 struct mdesc_handle *hp; mdesc_kmalloc() local 224 mdesc_kfree(struct mdesc_handle *hp) mdesc_kfree() argument 240 struct mdesc_handle *hp = mops->alloc(mdesc_size); mdesc_alloc() local 248 mdesc_free(struct mdesc_handle *hp) mdesc_free() argument 259 struct mdesc_handle *hp; mdesc_grab() local 272 mdesc_release(struct mdesc_handle *hp) mdesc_release() argument 319 parent_cfg_handle(struct mdesc_handle *hp, u64 node) parent_cfg_handle() argument 504 struct mdesc_handle *hp, *orig_hp; mdesc_update() local 544 mdesc_get_node(struct mdesc_handle *hp, const char *node_name, union md_node_info *node_info) mdesc_get_node() argument 584 mdesc_get_node_info(struct mdesc_handle *hp, u64 node, const char *node_name, union md_node_info *node_info) mdesc_get_node_info() argument 629 mdesc_node_by_name(struct mdesc_handle *hp, u64 from_node, const char *name) mdesc_node_by_name() argument 658 mdesc_get_property(struct mdesc_handle *hp, u64 node, const char *name, int *lenp) mdesc_get_property() argument 704 mdesc_next_arc(struct mdesc_handle *hp, u64 from, const char *arc_type) mdesc_next_arc() argument 730 mdesc_arc_target(struct mdesc_handle *hp, u64 arc) mdesc_arc_target() argument 740 mdesc_node_name(struct mdesc_handle *hp, u64 node) mdesc_node_name() argument 761 struct mdesc_handle *hp = mdesc_grab(); report_platform_properties() local 818 fill_in_one_cache(cpuinfo_sparc *c, struct mdesc_handle *hp, u64 mp) fill_in_one_cache() argument 861 find_back_node_value(struct mdesc_handle *hp, u64 node, char *srch_val, void (*func)(struct mdesc_handle *, u64, int), u64 val, int depth) find_back_node_value() argument 883 __mark_core_id(struct mdesc_handle *hp, u64 node, int core_id) __mark_core_id() argument 892 __mark_max_cache_id(struct mdesc_handle *hp, u64 node, int max_cache_id) __mark_max_cache_id() argument 908 mark_core_ids(struct mdesc_handle *hp, u64 mp, int core_id) mark_core_ids() argument 914 mark_max_cache_ids(struct mdesc_handle *hp, u64 mp, int max_cache_id) mark_max_cache_ids() argument 921 set_core_ids(struct mdesc_handle *hp) set_core_ids() argument 949 set_max_cache_ids_by_cache(struct mdesc_handle *hp, int level) set_max_cache_ids_by_cache() argument 972 set_sock_ids_by_socket(struct mdesc_handle *hp, u64 mp) set_sock_ids_by_socket() argument 996 set_sock_ids(struct mdesc_handle *hp) set_sock_ids() argument 1013 mark_proc_ids(struct mdesc_handle *hp, u64 mp, int proc_id) mark_proc_ids() argument 1032 __set_proc_ids(struct mdesc_handle *hp, const char *exec_unit_name) __set_proc_ids() argument 1052 set_proc_ids(struct mdesc_handle *hp) set_proc_ids() argument 1080 get_mondo_data(struct mdesc_handle *hp, u64 mp, struct trap_per_cpu *tb) get_mondo_data() argument 1109 struct mdesc_handle *hp = mdesc_grab(); mdesc_iterate_over_cpus() local 1137 record_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) record_one_cpu() argument 1156 check_one_pgsz(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) check_one_pgsz() argument 1180 fill_in_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) fill_in_one_cpu() argument 1232 struct mdesc_handle *hp; mdesc_fill_in_cpu_data() local 1254 struct mdesc_handle *hp = mdesc_grab(); mdesc_open() local 1267 struct mdesc_handle *hp = file->private_data; mdesc_read() local 1290 struct mdesc_handle *hp = file->private_data; mdesc_llseek() local 1327 struct mdesc_handle *hp; sun4v_mdesc_init() local [all...] |
H A D | vio.c | 207 static const u64 *vio_cfg_handle(struct mdesc_handle *hp, u64 node) in vio_cfg_handle() argument 212 mdesc_for_each_arc(a, hp, node, MDESC_ARC_TYPE_BACK) { in vio_cfg_handle() 215 target = mdesc_arc_target(hp, a); in vio_cfg_handle() 216 cfg_handle = mdesc_get_property(hp, target, in vio_cfg_handle() 227 * @hp: Handle to the MD 238 u64 vio_vdev_node(struct mdesc_handle *hp, struct vio_dev *vdev) in vio_vdev_node() argument 245 node = mdesc_get_node(hp, (const char *)vdev->node_name, in vio_vdev_node() 252 static void vio_fill_channel_info(struct mdesc_handle *hp, u64 mp, in vio_fill_channel_info() argument 260 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) { in vio_fill_channel_info() 265 target = mdesc_arc_target(hp, in vio_fill_channel_info() 292 vio_create_one(struct mdesc_handle *hp, u64 mp, const char *node_name, struct device *parent) vio_create_one() argument 413 vio_add(struct mdesc_handle *hp, u64 node, const char *node_name) vio_add() argument 420 struct mdesc_handle *hp; global() member 440 vio_remove(struct mdesc_handle *hp, u64 node, const char *node_name) vio_remove() argument 471 vio_add_ds(struct mdesc_handle *hp, u64 node, const char *node_name) vio_add_ds() argument 504 struct mdesc_handle *hp; vio_init() local [all...] |
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | mdesc.c | 149 static void mdesc_handle_init(struct mdesc_handle *hp, in mdesc_handle_init() argument 153 BUG_ON(((unsigned long)&hp->mdesc) & (16UL - 1)); in mdesc_handle_init() 155 memset(hp, 0, handle_size); in mdesc_handle_init() 156 INIT_LIST_HEAD(&hp->list); in mdesc_handle_init() 157 hp->self_base = base; in mdesc_handle_init() 158 refcount_set(&hp->refcnt, 1); in mdesc_handle_init() 159 hp->handle_size = handle_size; in mdesc_handle_init() 165 struct mdesc_handle *hp; in mdesc_memblock_alloc() local 175 hp = NULL; in mdesc_memblock_alloc() 177 hp in mdesc_memblock_alloc() 183 mdesc_memblock_free(struct mdesc_handle *hp) mdesc_memblock_free() argument 204 struct mdesc_handle *hp; mdesc_kmalloc() local 224 mdesc_kfree(struct mdesc_handle *hp) mdesc_kfree() argument 240 struct mdesc_handle *hp = mops->alloc(mdesc_size); mdesc_alloc() local 248 mdesc_free(struct mdesc_handle *hp) mdesc_free() argument 259 struct mdesc_handle *hp; mdesc_grab() local 272 mdesc_release(struct mdesc_handle *hp) mdesc_release() argument 319 parent_cfg_handle(struct mdesc_handle *hp, u64 node) parent_cfg_handle() argument 504 struct mdesc_handle *hp, *orig_hp; mdesc_update() local 544 mdesc_get_node(struct mdesc_handle *hp, const char *node_name, union md_node_info *node_info) mdesc_get_node() argument 584 mdesc_get_node_info(struct mdesc_handle *hp, u64 node, const char *node_name, union md_node_info *node_info) mdesc_get_node_info() argument 629 mdesc_node_by_name(struct mdesc_handle *hp, u64 from_node, const char *name) mdesc_node_by_name() argument 658 mdesc_get_property(struct mdesc_handle *hp, u64 node, const char *name, int *lenp) mdesc_get_property() argument 704 mdesc_next_arc(struct mdesc_handle *hp, u64 from, const char *arc_type) mdesc_next_arc() argument 730 mdesc_arc_target(struct mdesc_handle *hp, u64 arc) mdesc_arc_target() argument 740 mdesc_node_name(struct mdesc_handle *hp, u64 node) mdesc_node_name() argument 761 struct mdesc_handle *hp = mdesc_grab(); report_platform_properties() local 818 fill_in_one_cache(cpuinfo_sparc *c, struct mdesc_handle *hp, u64 mp) fill_in_one_cache() argument 861 find_back_node_value(struct mdesc_handle *hp, u64 node, char *srch_val, void (*func)(struct mdesc_handle *, u64, int), u64 val, int depth) find_back_node_value() argument 883 __mark_core_id(struct mdesc_handle *hp, u64 node, int core_id) __mark_core_id() argument 892 __mark_max_cache_id(struct mdesc_handle *hp, u64 node, int max_cache_id) __mark_max_cache_id() argument 908 mark_core_ids(struct mdesc_handle *hp, u64 mp, int core_id) mark_core_ids() argument 914 mark_max_cache_ids(struct mdesc_handle *hp, u64 mp, int max_cache_id) mark_max_cache_ids() argument 921 set_core_ids(struct mdesc_handle *hp) set_core_ids() argument 949 set_max_cache_ids_by_cache(struct mdesc_handle *hp, int level) set_max_cache_ids_by_cache() argument 972 set_sock_ids_by_socket(struct mdesc_handle *hp, u64 mp) set_sock_ids_by_socket() argument 996 set_sock_ids(struct mdesc_handle *hp) set_sock_ids() argument 1013 mark_proc_ids(struct mdesc_handle *hp, u64 mp, int proc_id) mark_proc_ids() argument 1032 __set_proc_ids(struct mdesc_handle *hp, const char *exec_unit_name) __set_proc_ids() argument 1052 set_proc_ids(struct mdesc_handle *hp) set_proc_ids() argument 1080 get_mondo_data(struct mdesc_handle *hp, u64 mp, struct trap_per_cpu *tb) get_mondo_data() argument 1109 struct mdesc_handle *hp = mdesc_grab(); mdesc_iterate_over_cpus() local 1137 record_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) record_one_cpu() argument 1156 check_one_pgsz(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) check_one_pgsz() argument 1180 fill_in_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) fill_in_one_cpu() argument 1232 struct mdesc_handle *hp; mdesc_fill_in_cpu_data() local 1254 struct mdesc_handle *hp = mdesc_grab(); mdesc_open() local 1267 struct mdesc_handle *hp = file->private_data; mdesc_read() local 1290 struct mdesc_handle *hp = file->private_data; mdesc_llseek() local 1327 struct mdesc_handle *hp; sun4v_mdesc_init() local [all...] |
H A D | vio.c | 205 static const u64 *vio_cfg_handle(struct mdesc_handle *hp, u64 node) in vio_cfg_handle() argument 210 mdesc_for_each_arc(a, hp, node, MDESC_ARC_TYPE_BACK) { in vio_cfg_handle() 213 target = mdesc_arc_target(hp, a); in vio_cfg_handle() 214 cfg_handle = mdesc_get_property(hp, target, in vio_cfg_handle() 225 * @hp: Handle to the MD 236 u64 vio_vdev_node(struct mdesc_handle *hp, struct vio_dev *vdev) in vio_vdev_node() argument 243 node = mdesc_get_node(hp, (const char *)vdev->node_name, in vio_vdev_node() 250 static void vio_fill_channel_info(struct mdesc_handle *hp, u64 mp, in vio_fill_channel_info() argument 258 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) { in vio_fill_channel_info() 263 target = mdesc_arc_target(hp, in vio_fill_channel_info() 290 vio_create_one(struct mdesc_handle *hp, u64 mp, const char *node_name, struct device *parent) vio_create_one() argument 411 vio_add(struct mdesc_handle *hp, u64 node, const char *node_name) vio_add() argument 418 struct mdesc_handle *hp; global() member 438 vio_remove(struct mdesc_handle *hp, u64 node, const char *node_name) vio_remove() argument 469 vio_add_ds(struct mdesc_handle *hp, u64 node, const char *node_name) vio_add_ds() argument 502 struct mdesc_handle *hp; vio_init() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A 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 in mlx5_hairpin_create_queues() 340 mlx5_hairpin_destroy_queues(struct mlx5_hairpin *hp) mlx5_hairpin_destroy_queues() argument 391 mlx5_hairpin_pair_queues(struct mlx5_hairpin *hp) mlx5_hairpin_pair_queues() argument 427 mlx5_hairpin_unpair_peer_sq(struct mlx5_hairpin *hp) mlx5_hairpin_unpair_peer_sq() argument 436 mlx5_hairpin_unpair_queues(struct mlx5_hairpin *hp) mlx5_hairpin_unpair_queues() argument 454 struct mlx5_hairpin *hp; mlx5_core_hairpin_create() local 487 mlx5_core_hairpin_destroy(struct mlx5_hairpin *hp) mlx5_core_hairpin_destroy() argument 494 mlx5_core_hairpin_clear_dead_peer(struct mlx5_hairpin *hp) mlx5_core_hairpin_clear_dead_peer() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A 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 in mlx5_hairpin_create_queues() 340 mlx5_hairpin_destroy_queues(struct mlx5_hairpin *hp) mlx5_hairpin_destroy_queues() argument 391 mlx5_hairpin_pair_queues(struct mlx5_hairpin *hp) mlx5_hairpin_pair_queues() argument 427 mlx5_hairpin_unpair_peer_sq(struct mlx5_hairpin *hp) mlx5_hairpin_unpair_peer_sq() argument 436 mlx5_hairpin_unpair_queues(struct mlx5_hairpin *hp) mlx5_hairpin_unpair_queues() argument 454 struct mlx5_hairpin *hp; mlx5_core_hairpin_create() local 487 mlx5_core_hairpin_destroy(struct mlx5_hairpin *hp) mlx5_core_hairpin_destroy() argument 494 mlx5_core_hairpin_clear_dead_peer(struct mlx5_hairpin *hp) mlx5_core_hairpin_clear_dead_peer() argument [all...] |
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | exthdrs_core.c | 80 struct ipv6_opt_hdr _hdr, *hp; in ipv6_skip_exthdr() local 85 hp = skb_header_pointer(skb, start, sizeof(_hdr), &_hdr); in ipv6_skip_exthdr() 86 if (!hp) in ipv6_skip_exthdr() 103 hdrlen = ipv6_authlen(hp); in ipv6_skip_exthdr() 105 hdrlen = ipv6_optlen(hp); in ipv6_skip_exthdr() 107 nexthdr = hp->nexthdr; in ipv6_skip_exthdr() 209 struct ipv6_opt_hdr _hdr, *hp; in ipv6_find_hdr() local 219 hp = skb_header_pointer(skb, start, sizeof(_hdr), &_hdr); in ipv6_find_hdr() 220 if (!hp) in ipv6_find_hdr() 253 ((!ipv6_ext_hdr(hp in ipv6_find_hdr() [all...] |
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | exthdrs_core.c | 80 struct ipv6_opt_hdr _hdr, *hp; in ipv6_skip_exthdr() local 85 hp = skb_header_pointer(skb, start, sizeof(_hdr), &_hdr); in ipv6_skip_exthdr() 86 if (!hp) in ipv6_skip_exthdr() 103 hdrlen = ipv6_authlen(hp); in ipv6_skip_exthdr() 105 hdrlen = ipv6_optlen(hp); in ipv6_skip_exthdr() 107 nexthdr = hp->nexthdr; in ipv6_skip_exthdr() 209 struct ipv6_opt_hdr _hdr, *hp; in ipv6_find_hdr() local 219 hp = skb_header_pointer(skb, start, sizeof(_hdr), &_hdr); in ipv6_find_hdr() 220 if (!hp) in ipv6_find_hdr() 253 ((!ipv6_ext_hdr(hp in ipv6_find_hdr() [all...] |
/kernel/linux/linux-5.10/net/sunrpc/ |
H A D | svcauth.c | 169 struct auth_domain *hp; in auth_domain_lookup() local 176 hlist_for_each_entry(hp, head, hash) { in auth_domain_lookup() 177 if (strcmp(hp->name, name)==0) { in auth_domain_lookup() 178 kref_get(&hp->ref); in auth_domain_lookup() 180 return hp; in auth_domain_lookup() 192 struct auth_domain *hp; in auth_domain_find() local 198 hlist_for_each_entry_rcu(hp, head, hash) { in auth_domain_find() 199 if (strcmp(hp->name, name)==0) { in auth_domain_find() 200 if (!kref_get_unless_zero(&hp->ref)) in auth_domain_find() 201 hp in auth_domain_find() 226 struct auth_domain *hp; auth_domain_cleanup() local [all...] |