Searched refs:sw (Results 26 - 50 of 265) sorted by relevance

1234567891011

/linux-master/drivers/input/misc/
H A Dad714x.c216 struct ad714x_button_drv *sw = &ad714x->sw->button[idx]; local
218 switch (sw->state) {
223 input_report_key(sw->input, hw->keycode, 1);
224 input_sync(sw->input);
225 sw->state = ACTIVE;
233 input_report_key(sw->input, hw->keycode, 0);
234 input_sync(sw->input);
235 sw->state = IDLE;
269 struct ad714x_slider_drv *sw local
294 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; local
315 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; local
341 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; local
410 struct ad714x_wheel_drv *sw = &ad714x->sw->wheel[idx]; local
452 struct ad714x_wheel_drv *sw = &ad714x->sw->wheel[idx]; local
483 struct ad714x_wheel_drv *sw = &ad714x->sw->wheel[idx]; local
513 struct ad714x_wheel_drv *sw = &ad714x->sw->wheel[idx]; local
597 struct ad714x_touchpad_drv *sw = &ad714x->sw->touchpad[idx]; local
618 struct ad714x_touchpad_drv *sw = &ad714x->sw->touchpad[idx]; local
657 struct ad714x_touchpad_drv *sw = &ad714x->sw->touchpad[idx]; local
670 struct ad714x_touchpad_drv *sw = &ad714x->sw->touchpad[idx]; local
702 struct ad714x_touchpad_drv *sw = &ad714x->sw->touchpad[idx]; local
794 struct ad714x_touchpad_drv *sw = &ad714x->sw->touchpad[idx]; local
[all...]
/linux-master/drivers/net/ethernet/marvell/prestera/
H A Dprestera_span.c21 struct prestera_switch *sw; member in struct:prestera_span
37 list_add_tail(&entry->list, &port->sw->span->entries);
78 struct prestera_switch *sw = port->sw; local
82 entry = prestera_span_entry_find_by_port(sw->span, port);
95 prestera_hw_span_release(sw, new_span_id);
103 static int prestera_span_put(struct prestera_switch *sw, u8 span_id) argument
108 entry = prestera_span_entry_find_by_id(sw->span, span_id);
115 err = prestera_hw_span_release(sw, span_id);
127 struct prestera_switch *sw local
169 prestera_span_init(struct prestera_switch *sw) argument
185 prestera_span_fini(struct prestera_switch *sw) argument
[all...]
H A Dprestera_router_hw.h123 prestera_rif_entry_find(const struct prestera_switch *sw,
125 void prestera_rif_entry_destroy(struct prestera_switch *sw,
128 prestera_rif_entry_create(struct prestera_switch *sw,
132 prestera_nh_neigh_find(struct prestera_switch *sw,
135 prestera_nh_neigh_get(struct prestera_switch *sw,
137 void prestera_nh_neigh_put(struct prestera_switch *sw,
139 int prestera_nh_neigh_set(struct prestera_switch *sw,
141 bool prestera_nh_neigh_util_hw_state(struct prestera_switch *sw,
143 struct prestera_fib_node *prestera_fib_node_find(struct prestera_switch *sw,
145 void prestera_fib_node_destroy(struct prestera_switch *sw,
[all...]
H A Dprestera_devlink.c127 struct prestera_switch *sw; member in struct:prestera_trap_data
356 struct prestera_switch *sw = devlink_priv(dl); local
360 sw->dev->fw_rev.maj,
361 sw->dev->fw_rev.min,
362 sw->dev->fw_rev.sub);
394 void prestera_devlink_free(struct prestera_switch *sw) argument
396 struct devlink *dl = priv_to_devlink(sw);
401 void prestera_devlink_register(struct prestera_switch *sw) argument
403 struct devlink *dl = priv_to_devlink(sw);
408 void prestera_devlink_unregister(struct prestera_switch *sw) argument
417 struct prestera_switch *sw = port->sw; local
443 prestera_devlink_traps_register(struct prestera_switch *sw) argument
498 prestera_get_trap_item_by_cpu_code(struct prestera_switch *sw, u8 cpu_code) argument
530 prestera_devlink_trap_item_lookup(struct prestera_switch *sw, u16 trap_id) argument
546 struct prestera_switch *sw = devlink_priv(devlink); local
572 struct prestera_switch *sw = devlink_priv(devlink); local
582 prestera_devlink_traps_unregister(struct prestera_switch *sw) argument
[all...]
H A Dprestera_counter.h18 int prestera_counter_init(struct prestera_switch *sw);
19 void prestera_counter_fini(struct prestera_switch *sw);
/linux-master/tools/testing/selftests/drivers/net/bonding/
H A Dbond-lladdr-target.sh9 # | | | sw
25 sw="sw-$(mktemp -u XXXXXX)"
30 ip netns del $sw
46 ip netns add $sw
49 ip -n $host link add veth0 type veth peer name veth0 netns $sw
50 ip -n $host link add veth1 type veth peer name veth1 netns $sw
52 ip -n $sw link add br0 type bridge
53 ip -n $sw link set br0 up
54 sw_lladdr=$(ip -n $sw add
[all...]
/linux-master/drivers/thunderbolt/
H A Dtb.c99 static void tb_add_dp_resources(struct tb_switch *sw) argument
101 struct tb_cm *tcm = tb_priv(sw->tb);
104 tb_switch_for_each_port(sw, port) {
108 if (!tb_switch_query_dp_resource(sw, port))
117 if (tb_route(sw))
126 static void tb_remove_dp_resources(struct tb_switch *sw) argument
128 struct tb_cm *tcm = tb_priv(sw->tb);
132 tb_switch_for_each_port(sw, port) {
134 tb_remove_dp_resources(port->remote->sw);
138 if (port->sw
172 tb_enable_clx(struct tb_switch *sw) argument
225 tb_disable_clx(struct tb_switch *sw) argument
246 struct tb_switch *sw; local
273 struct tb_switch *sw; local
291 tb_enable_tmu(struct tb_switch *sw) argument
330 tb_switch_discover_tunnels(struct tb_switch *sw, struct list_head *list, bool alloc_hopids) argument
387 struct tb_switch *sw = port->sw; local
416 tb_find_unused_port(struct tb_switch *sw, enum tb_port_type type) argument
435 tb_find_usb3_down(struct tb_switch *sw, const struct tb_port *port) argument
469 struct tb_switch *sw; local
853 tb_tunnel_usb3(struct tb *tb, struct tb_switch *sw) argument
936 tb_create_usb3_tunnels(struct tb_switch *sw) argument
981 struct tb_switch *sw; local
1086 struct tb_switch *sw; local
1167 tb_configure_link(struct tb_port *down, struct tb_port *up, struct tb_switch *sw) argument
1210 tb_scan_switch(struct tb_switch *sw) argument
1231 struct tb_switch *sw; local
1715 tb_free_unplugged_children(struct tb_switch *sw) argument
1739 tb_find_pcie_down(struct tb_switch *sw, const struct tb_port *port) argument
1985 struct tb_switch *sw = port->sw; local
2010 struct tb_switch *sw = port->sw; local
2101 tb_disconnect_pci(struct tb *tb, struct tb_switch *sw) argument
2122 tb_tunnel_pci(struct tb *tb, struct tb_switch *sw) argument
2173 struct tb_switch *sw; local
2222 struct tb_switch *sw; local
2273 struct tb_switch *sw; local
2580 struct tb_switch *sw; local
2787 struct tb_switch *sw = tb_to_switch(dev); local
2898 tb_restore_children(struct tb_switch *sw) argument
2990 tb_free_unplugged_xdomains(struct tb_switch *sw) argument
[all...]
H A Dcap.c20 struct tb_switch *sw = port->sw; local
28 if (tb_switch_is_light_ridge(sw))
30 else if (tb_switch_is_eagle_ridge(sw))
35 ret = tb_sw_read(sw, &value, TB_CFG_SWITCH, offset, 1);
44 return tb_sw_write(sw, &value, TB_CFG_SWITCH, offset, 1);
55 if (tb_switch_is_light_ridge(port->sw)) {
137 * @sw: Switch to find the capability for
145 int tb_switch_next_cap(struct tb_switch *sw, unsigned int offset) argument
151 return sw
188 tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap) argument
221 tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec) argument
[all...]
H A Ddma_port.c49 * @sw: Switch the DMA port belongs to
55 struct tb_switch *sw; member in struct:tb_dma_port
168 static int dma_find_port(struct tb_switch *sw) argument
181 ret = dma_port_read(sw->tb->ctl, &type, tb_route(sw), ports[i],
192 * @sw: Switch from where find the DMA port
201 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw) argument
206 port = dma_find_port(sw);
220 dma->sw = sw;
243 struct tb_switch *sw = dma->sw; local
281 struct tb_switch *sw = dma->sw; local
306 struct tb_switch *sw = dma->sw; local
328 struct tb_switch *sw = dma->sw; local
422 struct tb_switch *sw = dma->sw; local
[all...]
H A Dicm.c400 struct icm_fr_pkg_get_topology_response *switches, *sw; local
417 sw = &switches[0];
418 index = icm_fr_get_switch_index(sw->ports[link]);
424 sw = &switches[index];
428 if (!(sw->first_data & ICM_SWITCH_USED)) {
433 for (j = 0; j < ARRAY_SIZE(sw->ports); j++) {
434 index = icm_fr_get_switch_index(sw->ports[j]);
435 if (index > sw->switch_index) {
436 sw = &switches[index];
442 *route = get_route(sw
476 icm_fr_approve_switch(struct tb *tb, struct tb_switch *sw) argument
503 icm_fr_add_switch_key(struct tb *tb, struct tb_switch *sw) argument
530 icm_fr_challenge_switch_key(struct tb *tb, struct tb_switch *sw, const u8 *challenge, u8 *response) argument
613 struct tb_switch *sw; local
631 add_switch(struct tb_switch *parent_sw, struct tb_switch *sw) argument
647 update_switch(struct tb_switch *sw, u64 route, u8 connection_id, u8 connection_key, u8 link, u8 depth, bool boot) argument
673 remove_switch(struct tb_switch *sw) argument
679 add_xdomain(struct tb_switch *sw, u64 route, const uuid_t *local_uuid, const uuid_t *remote_uuid, u8 link, u8 depth) argument
712 struct tb_switch *sw; local
725 struct tb_switch *sw, *parent_sw; local
872 struct tb_switch *sw; local
907 struct tb_switch *sw; local
1041 icm_tr_approve_switch(struct tb *tb, struct tb_switch *sw) argument
1068 icm_tr_add_switch_key(struct tb *tb, struct tb_switch *sw) argument
1096 icm_tr_challenge_switch_key(struct tb *tb, struct tb_switch *sw, const u8 *challenge, u8 *response) argument
1205 struct tb_switch *sw, *parent_sw; local
1304 struct tb_switch *sw; local
1330 struct tb_switch *sw; local
2008 icm_unplug_children(struct tb_switch *sw) argument
2025 struct tb_switch *sw = tb_to_switch(dev); local
2032 remove_unplugged_switch(struct tb_switch *sw) argument
2053 icm_free_unplugged_children(struct tb_switch *sw) argument
2119 icm_runtime_suspend_switch(struct tb_switch *sw) argument
2126 icm_runtime_resume_switch(struct tb_switch *sw) argument
2258 icm_usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata, u8 *status, const void *tx_data, size_t tx_data_len, void *rx_data, size_t rx_data_len) argument
2320 icm_usb4_switch_nvm_authenticate_status(struct tb_switch *sw, u32 *status) argument
[all...]
H A Ddebugfs.c127 static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port, argument
131 struct tb *tb = sw->tb;
140 pm_runtime_get_sync(&sw->dev);
155 ret = tb_sw_write(sw, &val, TB_CFG_SWITCH, offset, 1);
163 pm_runtime_mark_last_busy(&sw->dev);
164 pm_runtime_put_autosuspend(&sw->dev);
176 return regs_write(port->sw, port, user_buf, count, ppos);
183 struct tb_switch *sw = s->private; local
185 return regs_write(sw, NULL, user_buf, count, ppos);
268 struct tb *tb = port->sw
557 struct tb_switch *sw = port->sw; local
969 margining_switch_init(struct tb_switch *sw) argument
986 margining_switch_remove(struct tb_switch *sw) argument
1024 margining_switch_init(struct tb_switch *sw) argument
1025 margining_switch_remove(struct tb_switch *sw) argument
1052 struct tb_switch *sw = port->sw; local
1094 cap_show_by_dw(struct seq_file *s, struct tb_switch *sw, struct tb_port *port, unsigned int cap, unsigned int offset, u8 cap_id, u8 vsec_id, int dwords) argument
1117 cap_show(struct seq_file *s, struct tb_switch *sw, struct tb_port *port, unsigned int cap, u8 cap_id, u8 vsec_id, int length) argument
1260 struct tb_switch *sw = port->sw; local
1289 switch_cap_show(struct tb_switch *sw, struct seq_file *s, unsigned int cap) argument
1329 switch_caps_show(struct tb_switch *sw, struct seq_file *s) argument
1340 switch_basic_regs_show(struct tb_switch *sw, struct seq_file *s) argument
1364 struct tb_switch *sw = s->private; local
1416 struct tb_switch *sw = port->sw; local
1479 struct tb_switch *sw = port->sw; local
1514 tb_switch_debugfs_init(struct tb_switch *sw) argument
1553 tb_switch_debugfs_remove(struct tb_switch *sw) argument
[all...]
H A Dusb4.c59 static int usb4_native_switch_op(struct tb_switch *sw, u16 opcode, argument
68 ret = tb_sw_write(sw, metadata, TB_CFG_SWITCH, ROUTER_CS_25, 1);
73 ret = tb_sw_write(sw, tx_data, TB_CFG_SWITCH, ROUTER_CS_9,
80 ret = tb_sw_write(sw, &val, TB_CFG_SWITCH, ROUTER_CS_26, 1);
84 ret = tb_switch_wait_for_bit(sw, ROUTER_CS_26, ROUTER_CS_26_OV, 0, 500);
88 ret = tb_sw_read(sw, &val, TB_CFG_SWITCH, ROUTER_CS_26, 1);
100 ret = tb_sw_read(sw, metadata, TB_CFG_SWITCH, ROUTER_CS_25, 1);
105 ret = tb_sw_read(sw, rx_data, TB_CFG_SWITCH, ROUTER_CS_9,
114 static int __usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata, argument
118 const struct tb_cm_ops *cm_ops = sw
147 usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata, u8 *status) argument
153 usb4_switch_op_data(struct tb_switch *sw, u16 opcode, u32 *metadata, u8 *status, const void *tx_data, size_t tx_dwords, void *rx_data, size_t rx_dwords) argument
168 usb4_switch_check_wakes(struct tb_switch *sw) argument
246 usb4_switch_setup(struct tb_switch *sw) argument
314 usb4_switch_configuration_valid(struct tb_switch *sw) argument
343 usb4_switch_read_uid(struct tb_switch *sw, u64 *uid) argument
352 struct tb_switch *sw = data; local
380 usb4_switch_drom_read(struct tb_switch *sw, unsigned int address, void *buf, size_t size) argument
394 usb4_switch_lane_bonding_possible(struct tb_switch *sw) argument
415 usb4_switch_set_wake(struct tb_switch *sw, unsigned int flags) argument
497 usb4_switch_set_sleep(struct tb_switch *sw) argument
525 usb4_switch_nvm_sector_size(struct tb_switch *sw) argument
545 struct tb_switch *sw = data; local
573 usb4_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf, size_t size) argument
590 usb4_switch_nvm_set_offset(struct tb_switch *sw, unsigned int address) argument
611 struct tb_switch *sw = data; local
633 usb4_switch_nvm_write(struct tb_switch *sw, unsigned int address, const void *buf, size_t size) argument
659 usb4_switch_nvm_authenticate(struct tb_switch *sw) argument
691 usb4_switch_nvm_authenticate_status(struct tb_switch *sw, u32 *status) argument
735 usb4_switch_credits_init(struct tb_switch *sw) argument
875 usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) argument
905 usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) argument
928 usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) argument
944 usb4_port_idx(const struct tb_switch *sw, const struct tb_port *port) argument
975 usb4_switch_map_pcie_down(struct tb_switch *sw, const struct tb_port *port) argument
1006 usb4_switch_map_usb3_down(struct tb_switch *sw, const struct tb_port *port) argument
1036 usb4_switch_add_ports(struct tb_switch *sw) argument
1069 usb4_switch_remove_ports(struct tb_switch *sw) argument
[all...]
H A Dtest.c39 struct tb_switch *sw; local
43 sw = kunit_kzalloc(test, sizeof(*sw), GFP_KERNEL);
44 if (!sw)
47 sw->config.upstream_port_number = upstream_port;
48 sw->config.depth = tb_route_length(route);
49 sw->config.route_hi = upper_32_bits(route);
50 sw->config.route_lo = lower_32_bits(route);
51 sw->config.enabled = 0;
52 sw
74 struct tb_switch *sw; local
156 struct tb_switch *sw; local
175 struct tb_switch *sw; local
195 struct tb_switch *sw; local
344 struct tb_switch *sw; local
365 struct tb_switch *sw; local
406 struct tb_switch *sw; local
[all...]
/linux-master/drivers/input/joystick/
H A Dsidewinder.c95 struct sw { struct
196 #define GB(pos,num) sw_get_bits(buf, pos, num, sw->bits)
282 static int sw_parse(unsigned char *buf, struct sw *sw) argument
287 switch (sw->type) {
294 dev = sw->dev[0];
316 for (i = 0; i < sw->number; i ++) {
321 input_report_abs(sw->dev[i], ABS_X, GB(i*15+3,1) - GB(i*15+2,1));
322 input_report_abs(sw->dev[i], ABS_Y, GB(i*15+0,1) - GB(i*15+1,1));
325 input_report_key(sw
406 sw_read(struct sw *sw) argument
483 struct sw *sw = gameport_get_drvdata(gameport); local
492 struct sw *sw = input_get_drvdata(dev); local
500 struct sw *sw = input_get_drvdata(dev); local
569 struct sw *sw; local
789 struct sw *sw = gameport_get_drvdata(gameport); local
[all...]
/linux-master/drivers/soc/bcm/brcmstb/pm/
H A Ds3-mips.S26 sw ra, 0(t0)
27 sw s0, 4(t0)
28 sw s1, 8(t0)
29 sw s2, 12(t0)
30 sw s3, 16(t0)
31 sw s4, 20(t0)
32 sw s5, 24(t0)
33 sw s6, 28(t0)
34 sw s7, 32(t0)
35 sw g
[all...]
H A Ds2-mips.S23 sw ra, 0(sp)
24 sw s0, 4(sp)
25 sw s1, 8(sp)
26 sw s2, 12(sp)
27 sw s3, 16(sp)
28 sw s4, 20(sp)
29 sw s5, 24(sp)
30 sw s6, 28(sp)
31 sw s7, 32(sp)
79 sw zer
[all...]
/linux-master/arch/m68k/include/asm/
H A Delf.h104 struct switch_stack *sw = ((struct switch_stack *)regs) - 1; \
105 pr_reg[5] = sw->d6; \
106 pr_reg[6] = sw->d7; \
107 pr_reg[10] = sw->a3; \
108 pr_reg[11] = sw->a4; \
109 pr_reg[12] = sw->a5; \
110 pr_reg[13] = sw->a6; \
/linux-master/arch/nios2/kernel/
H A Dsignal.c38 struct switch_stack *sw,
67 err |= __get_user(sw->r16, &gregs[15]);
68 err |= __get_user(sw->r17, &gregs[16]);
69 err |= __get_user(sw->r18, &gregs[17]);
70 err |= __get_user(sw->r19, &gregs[18]);
71 err |= __get_user(sw->r20, &gregs[19]);
72 err |= __get_user(sw->r21, &gregs[20]);
73 err |= __get_user(sw->r22, &gregs[21]);
74 err |= __get_user(sw->r23, &gregs[22]);
76 err |= __get_user(sw
37 rt_restore_ucontext(struct pt_regs *regs, struct switch_stack *sw, struct ucontext __user *uc, int *pr2) argument
101 do_rt_sigreturn(struct switch_stack *sw) argument
130 struct switch_stack *sw = (struct switch_stack *)regs - 1; local
[all...]
/linux-master/drivers/s390/char/
H A Dctrlchar.c28 void schedule_sysrq_work(struct sysrq_work *sw) argument
30 INIT_WORK(&sw->work, ctrlchar_handle_sysrq);
31 schedule_work(&sw->work);
/linux-master/include/linux/usb/
H A Dtypec_mux.h17 typedef int (*typec_switch_set_fn_t)(struct typec_switch_dev *sw,
28 void typec_switch_put(struct typec_switch *sw);
29 int typec_switch_set(struct typec_switch *sw,
40 void typec_switch_unregister(struct typec_switch_dev *sw);
42 void typec_switch_set_drvdata(struct typec_switch_dev *sw, void *data);
43 void *typec_switch_get_drvdata(struct typec_switch_dev *sw);
/linux-master/drivers/mtd/nand/
H A DMakefile12 nandcore-$(CONFIG_MTD_NAND_ECC_SW_HAMMING) += ecc-sw-hamming.o
13 nandcore-$(CONFIG_MTD_NAND_ECC_SW_BCH) += ecc-sw-bch.o
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/sw/
H A Dnv10.c39 nv10_sw_chan_new(struct nvkm_sw *sw, struct nvkm_chan *fifo, argument
48 return nvkm_sw_chan_ctor(&nv10_sw_chan, sw, fifo, oclass, chan);
/linux-master/arch/openrisc/kernel/
H A Dentry.S46 l.sw -8(r1),r2 /* store frame pointer */ ;\
47 l.sw -4(r1),r9 /* store return address */ ;\
59 l.sw -12(r1),t1 /* save extra reg */ ;\
60 l.sw -8(r1),r2 /* store frame pointer */ ;\
61 l.sw -4(r1),r9 /* store return address */ ;\
147 l.sw PT_GPR2(r1),r2 ;\
148 l.sw PT_GPR3(r1),r3 ;\
150 l.sw PT_GPR5(r1),r5 ;\
151 l.sw PT_GPR6(r1),r6 ;\
152 l.sw PT_GPR
509 sw: label
[all...]
/linux-master/drivers/block/
H A Dswim3.c274 struct swim3 __iomem *sw = fs->swim3; local
276 out_8(&sw->select, RELAX);
278 out_8(&sw->control_bis, SELECT);
280 out_8(&sw->control_bic, SELECT);
281 out_8(&sw->select, sel & CA_MASK);
286 struct swim3 __iomem *sw = fs->swim3; local
290 out_8(&sw->select, sw->select | LSTRB);
292 out_8(&sw->select, sw
298 struct swim3 __iomem *sw = fs->swim3; local
374 struct swim3 __iomem *sw = fs->swim3; local
387 struct swim3 __iomem *sw = fs->swim3; local
434 struct swim3 __iomem *sw = fs->swim3; local
559 struct swim3 __iomem *sw = fs->swim3; local
583 struct swim3 __iomem *sw = fs->swim3; local
602 struct swim3 __iomem *sw = fs->swim3; local
631 struct swim3 __iomem *sw = fs->swim3; local
658 struct swim3 __iomem *sw = fs->swim3; local
928 struct swim3 __iomem *sw = fs->swim3; local
1009 struct swim3 __iomem *sw = fs->swim3; local
1034 struct swim3 __iomem *sw; local
1085 struct swim3 __iomem *sw; local
[all...]
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A DMakefile12 sw.o \

Completed in 578 milliseconds

1234567891011