/Linux-v5.4/drivers/thunderbolt/ |
D | switch.c | 46 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) in __nvm_get_auth_status() argument 51 if (uuid_equal(&st->uuid, sw->uuid)) in __nvm_get_auth_status() 58 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status() argument 63 st = __nvm_get_auth_status(sw); in nvm_get_auth_status() 69 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status() argument 73 if (WARN_ON(!sw->uuid)) in nvm_set_auth_status() 77 st = __nvm_get_auth_status(sw); in nvm_set_auth_status() 84 memcpy(&st->uuid, sw->uuid, sizeof(st->uuid)); in nvm_set_auth_status() 94 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status() argument 99 st = __nvm_get_auth_status(sw); in nvm_clear_auth_status() [all …]
|
D | eeprom.c | 17 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_write() argument 19 return tb_sw_write(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + 4, 1); in tb_eeprom_ctl_write() 25 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_read() argument 27 return tb_sw_read(sw, ctl, TB_CFG_SWITCH, sw->cap_plug_events + 4, 1); in tb_eeprom_ctl_read() 41 static int tb_eeprom_active(struct tb_switch *sw, bool enable) in tb_eeprom_active() argument 44 int res = tb_eeprom_ctl_read(sw, &ctl); in tb_eeprom_active() 49 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() 53 return tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() 56 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() 60 return tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() [all …]
|
D | lc.c | 16 int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid) in tb_lc_read_uuid() argument 18 if (!sw->cap_lc) in tb_lc_read_uuid() 20 return tb_sw_read(sw, uuid, TB_CFG_SWITCH, sw->cap_lc + TB_LC_FUSE, 4); in tb_lc_read_uuid() 23 static int read_lc_desc(struct tb_switch *sw, u32 *desc) in read_lc_desc() argument 25 if (!sw->cap_lc) in read_lc_desc() 27 return tb_sw_read(sw, desc, TB_CFG_SWITCH, sw->cap_lc + TB_LC_DESC, 1); in read_lc_desc() 32 struct tb_switch *sw = port->sw; in find_port_lc_cap() local 36 ret = read_lc_desc(sw, &desc); in find_port_lc_cap() 45 return sw->cap_lc + start + phys * size; in find_port_lc_cap() 51 struct tb_switch *sw = port->sw; in tb_lc_configure_lane() local [all …]
|
D | tb.c | 59 static void tb_discover_tunnels(struct tb_switch *sw) in tb_discover_tunnels() argument 61 struct tb *tb = sw->tb; in tb_discover_tunnels() 66 for (i = 1; i <= sw->config.max_port_number; i++) { in tb_discover_tunnels() 69 port = &sw->ports[i]; in tb_discover_tunnels() 87 struct tb_switch *parent = tunnel->dst_port->sw; in tb_discover_tunnels() 89 while (parent != tunnel->src_port->sw) { in tb_discover_tunnels() 98 for (i = 1; i <= sw->config.max_port_number; i++) { in tb_discover_tunnels() 99 if (tb_port_has_remote(&sw->ports[i])) in tb_discover_tunnels() 100 tb_discover_tunnels(sw->ports[i].remote->sw); in tb_discover_tunnels() 106 struct tb_switch *sw = port->sw; in tb_scan_xdomain() local [all …]
|
D | tb.h | 138 struct tb_switch *sw; member 278 int (*runtime_suspend_switch)(struct tb_switch *sw); 279 int (*runtime_resume_switch)(struct tb_switch *sw); 284 int (*approve_switch)(struct tb *tb, struct tb_switch *sw); 285 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw); 286 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw, 312 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port() argument 314 return &sw->ports[sw->config.upstream_port_number]; in tb_upstream_port() 326 const struct tb_port *upstream_port = tb_upstream_port(port->sw); in tb_is_upstream_port() 330 static inline u64 tb_route(const struct tb_switch *sw) in tb_route() argument [all …]
|
D | icm.c | 360 struct icm_fr_pkg_get_topology_response *switches, *sw; in icm_fr_get_route() local 377 sw = &switches[0]; in icm_fr_get_route() 378 index = icm_fr_get_switch_index(sw->ports[link]); in icm_fr_get_route() 384 sw = &switches[index]; in icm_fr_get_route() 388 if (!(sw->first_data & ICM_SWITCH_USED)) { in icm_fr_get_route() 393 for (j = 0; j < ARRAY_SIZE(sw->ports); j++) { in icm_fr_get_route() 394 index = icm_fr_get_switch_index(sw->ports[j]); in icm_fr_get_route() 395 if (index > sw->switch_index) { in icm_fr_get_route() 396 sw = &switches[index]; in icm_fr_get_route() 402 *route = get_route(sw->route_hi, sw->route_lo); in icm_fr_get_route() [all …]
|
D | dma_port.c | 55 struct tb_switch *sw; member 168 static int dma_find_port(struct tb_switch *sw) in dma_find_port() argument 181 ret = dma_port_read(sw->tb->ctl, &type, tb_route(sw), ports[i], in dma_find_port() 201 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw) in dma_port_alloc() argument 206 port = dma_find_port(sw); in dma_port_alloc() 220 dma->sw = sw; in dma_port_alloc() 243 struct tb_switch *sw = dma->sw; in dma_port_wait_for_completion() local 249 ret = dma_port_read(sw->tb->ctl, &in, tb_route(sw), dma->port, in dma_port_wait_for_completion() 281 struct tb_switch *sw = dma->sw; in dma_port_request() local 285 ret = dma_port_write(sw->tb->ctl, &in, tb_route(sw), dma->port, in dma_port_request() [all …]
|
D | cap.c | 28 struct tb_switch *sw = port->sw; in tb_port_enable_tmu() local 36 if (tb_switch_is_lr(sw)) in tb_port_enable_tmu() 38 else if (tb_switch_is_er(sw)) in tb_port_enable_tmu() 43 ret = tb_sw_read(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu() 52 return tb_sw_write(sw, &value, TB_CFG_SWITCH, offset, 1); in tb_port_enable_tmu() 63 if (tb_switch_is_lr(port->sw)) { in tb_port_dummy_read() 116 static int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap) in tb_switch_find_cap() argument 118 int offset = sw->config.first_cap_offset; in tb_switch_find_cap() 124 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 1); in tb_switch_find_cap() 147 int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec) in tb_switch_find_vse_cap() argument [all …]
|
/Linux-v5.4/drivers/usb/roles/ |
D | class.c | 42 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role) in usb_role_switch_set_role() argument 46 if (IS_ERR_OR_NULL(sw)) in usb_role_switch_set_role() 49 mutex_lock(&sw->lock); in usb_role_switch_set_role() 51 ret = sw->set(sw->dev.parent, role); in usb_role_switch_set_role() 53 sw->role = role; in usb_role_switch_set_role() 55 mutex_unlock(&sw->lock); in usb_role_switch_set_role() 68 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role() argument 72 if (IS_ERR_OR_NULL(sw)) in usb_role_switch_get_role() 75 mutex_lock(&sw->lock); in usb_role_switch_get_role() 77 if (sw->get) in usb_role_switch_get_role() [all …]
|
/Linux-v5.4/drivers/input/joystick/ |
D | sidewinder.c | 98 struct sw { struct 199 #define GB(pos,num) sw_get_bits(buf, pos, num, sw->bits) 285 static int sw_parse(unsigned char *buf, struct sw *sw) in sw_parse() argument 290 switch (sw->type) { in sw_parse() 297 dev = sw->dev[0]; in sw_parse() 319 for (i = 0; i < sw->number; i ++) { in sw_parse() 324 input_report_abs(sw->dev[i], ABS_X, GB(i*15+3,1) - GB(i*15+2,1)); in sw_parse() 325 input_report_abs(sw->dev[i], ABS_Y, GB(i*15+0,1) - GB(i*15+1,1)); in sw_parse() 328 input_report_key(sw->dev[i], sw_btn[SW_ID_GP][j], !GB(i*15+j+4,1)); in sw_parse() 330 input_sync(sw->dev[i]); in sw_parse() [all …]
|
/Linux-v5.4/arch/mips/alchemy/common/ |
D | sleeper.S | 25 sw $1, PT_R1(sp) 26 sw $2, PT_R2(sp) 27 sw $3, PT_R3(sp) 28 sw $4, PT_R4(sp) 29 sw $5, PT_R5(sp) 30 sw $6, PT_R6(sp) 31 sw $7, PT_R7(sp) 32 sw $16, PT_R16(sp) 33 sw $17, PT_R17(sp) 34 sw $18, PT_R18(sp) [all …]
|
/Linux-v5.4/drivers/input/misc/ |
D | ad714x.c | 216 struct ad714x_button_drv *sw = &ad714x->sw->button[idx]; in ad714x_button_state_machine() local 218 switch (sw->state) { in ad714x_button_state_machine() 223 input_report_key(sw->input, hw->keycode, 1); in ad714x_button_state_machine() 224 input_sync(sw->input); in ad714x_button_state_machine() 225 sw->state = ACTIVE; in ad714x_button_state_machine() 233 input_report_key(sw->input, hw->keycode, 0); in ad714x_button_state_machine() 234 input_sync(sw->input); in ad714x_button_state_machine() 235 sw->state = IDLE; in ad714x_button_state_machine() 269 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; in ad714x_slider_cal_highest_stage() local 271 sw->highest_stage = ad714x_cal_highest_stage(ad714x, hw->start_stage, in ad714x_slider_cal_highest_stage() [all …]
|
/Linux-v5.4/arch/alpha/include/uapi/asm/ |
D | fpu.h | 93 ieee_swcr_to_fpcr(unsigned long sw) in ieee_swcr_to_fpcr() argument 96 fp = (sw & IEEE_STATUS_MASK) << 35; in ieee_swcr_to_fpcr() 97 fp |= (sw & IEEE_MAP_DMZ) << 36; in ieee_swcr_to_fpcr() 98 fp |= (sw & IEEE_STATUS_MASK ? FPCR_SUM : 0); in ieee_swcr_to_fpcr() 99 fp |= (~sw & (IEEE_TRAP_ENABLE_INV in ieee_swcr_to_fpcr() 102 fp |= (~sw & (IEEE_TRAP_ENABLE_UNF | IEEE_TRAP_ENABLE_INE)) << 57; in ieee_swcr_to_fpcr() 103 fp |= (sw & IEEE_MAP_UMZ ? FPCR_UNDZ | FPCR_UNFD : 0); in ieee_swcr_to_fpcr() 104 fp |= (~sw & IEEE_TRAP_ENABLE_DNO) << 41; in ieee_swcr_to_fpcr() 111 unsigned long sw; in ieee_fpcr_to_swcr() local 112 sw = (fp >> 35) & IEEE_STATUS_MASK; in ieee_fpcr_to_swcr() [all …]
|
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
D | base.c | 30 nvkm_sw_mthd(struct nvkm_sw *sw, int chid, int subc, u32 mthd, u32 data) in nvkm_sw_mthd() argument 36 spin_lock_irqsave(&sw->engine.lock, flags); in nvkm_sw_mthd() 37 list_for_each_entry(chan, &sw->chan, head) { in nvkm_sw_mthd() 41 list_add(&chan->head, &sw->chan); in nvkm_sw_mthd() 45 spin_unlock_irqrestore(&sw->engine.lock, flags); in nvkm_sw_mthd() 61 struct nvkm_sw *sw = nvkm_sw(oclass->engine); in nvkm_sw_oclass_get() local 64 while (sw->func->sclass[c].ctor) { in nvkm_sw_oclass_get() 66 oclass->engn = &sw->func->sclass[index]; in nvkm_sw_oclass_get() 67 oclass->base = sw->func->sclass[index].base; in nvkm_sw_oclass_get() 81 struct nvkm_sw *sw = nvkm_sw(oclass->engine); in nvkm_sw_cclass_get() local [all …]
|
D | chan.c | 76 struct nvkm_sw *sw = chan->sw; in nvkm_sw_chan_dtor() local 84 spin_lock_irqsave(&sw->engine.lock, flags); in nvkm_sw_chan_dtor() 86 spin_unlock_irqrestore(&sw->engine.lock, flags); in nvkm_sw_chan_dtor() 96 nvkm_sw_chan_ctor(const struct nvkm_sw_chan_func *func, struct nvkm_sw *sw, in nvkm_sw_chan_ctor() argument 104 chan->sw = sw; in nvkm_sw_chan_ctor() 106 spin_lock_irqsave(&sw->engine.lock, flags); in nvkm_sw_chan_ctor() 107 list_add(&chan->head, &sw->chan); in nvkm_sw_chan_ctor() 108 spin_unlock_irqrestore(&sw->engine.lock, flags); in nvkm_sw_chan_ctor()
|
D | Kbuild | 2 nvkm-y += nvkm/engine/sw/base.o 3 nvkm-y += nvkm/engine/sw/nv04.o 4 nvkm-y += nvkm/engine/sw/nv10.o 5 nvkm-y += nvkm/engine/sw/nv50.o 6 nvkm-y += nvkm/engine/sw/gf100.o 8 nvkm-y += nvkm/engine/sw/chan.o 10 nvkm-y += nvkm/engine/sw/nvsw.o
|
/Linux-v5.4/drivers/usb/typec/ |
D | mux.c | 72 struct typec_switch *sw; in typec_switch_get() local 74 sw = device_connection_find_match(dev, "orientation-switch", NULL, in typec_switch_get() 76 if (!IS_ERR_OR_NULL(sw)) in typec_switch_get() 77 WARN_ON(!try_module_get(sw->dev.parent->driver->owner)); in typec_switch_get() 79 return sw; in typec_switch_get() 89 void typec_switch_put(struct typec_switch *sw) in typec_switch_put() argument 91 if (!IS_ERR_OR_NULL(sw)) { in typec_switch_put() 92 module_put(sw->dev.parent->driver->owner); in typec_switch_put() 93 put_device(&sw->dev); in typec_switch_put() 122 struct typec_switch *sw; in typec_switch_register() local [all …]
|
/Linux-v5.4/arch/openrisc/kernel/ |
D | entry.S | 46 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_GPR7(r1),r7 ;\ [all …]
|
/Linux-v5.4/drivers/soc/bcm/brcmstb/pm/ |
D | s3-mips.S | 26 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 gp, 36(t0) [all …]
|
D | s2-mips.S | 23 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 zero, AON_CTRL_PM_CTRL(s0) [all …]
|
/Linux-v5.4/drivers/block/ |
D | swim3.c | 275 struct swim3 __iomem *sw = fs->swim3; in swim3_select() local 277 out_8(&sw->select, RELAX); in swim3_select() 279 out_8(&sw->control_bis, SELECT); in swim3_select() 281 out_8(&sw->control_bic, SELECT); in swim3_select() 282 out_8(&sw->select, sel & CA_MASK); in swim3_select() 287 struct swim3 __iomem *sw = fs->swim3; in swim3_action() local 291 out_8(&sw->select, sw->select | LSTRB); in swim3_action() 293 out_8(&sw->select, sw->select & ~LSTRB); in swim3_action() 299 struct swim3 __iomem *sw = fs->swim3; in swim3_readbit() local 304 stat = in_8(&sw->status); in swim3_readbit() [all …]
|
/Linux-v5.4/arch/nios2/include/asm/ |
D | elf.h | 62 struct switch_stack *sw = ((struct switch_stack *)regs) - 1; \ 63 pr_reg[23] = sw->r16; \ 64 pr_reg[24] = sw->r17; \ 65 pr_reg[25] = sw->r18; \ 66 pr_reg[26] = sw->r19; \ 67 pr_reg[27] = sw->r20; \ 68 pr_reg[28] = sw->r21; \ 69 pr_reg[29] = sw->r22; \ 70 pr_reg[30] = sw->r23; \ 71 pr_reg[31] = sw->fp; \ [all …]
|
/Linux-v5.4/arch/nios2/kernel/ |
D | signal.c | 38 struct switch_stack *sw, in rt_restore_ucontext() argument 67 err |= __get_user(sw->r16, &gregs[15]); in rt_restore_ucontext() 68 err |= __get_user(sw->r17, &gregs[16]); in rt_restore_ucontext() 69 err |= __get_user(sw->r18, &gregs[17]); in rt_restore_ucontext() 70 err |= __get_user(sw->r19, &gregs[18]); in rt_restore_ucontext() 71 err |= __get_user(sw->r20, &gregs[19]); in rt_restore_ucontext() 72 err |= __get_user(sw->r21, &gregs[20]); in rt_restore_ucontext() 73 err |= __get_user(sw->r22, &gregs[21]); in rt_restore_ucontext() 74 err |= __get_user(sw->r23, &gregs[22]); in rt_restore_ucontext() 76 err |= __get_user(sw->fp, &gregs[24]); /* Verify, should this be in rt_restore_ucontext() [all …]
|
/Linux-v5.4/include/linux/usb/ |
D | role.h | 47 int usb_role_switch_set_role(struct usb_role_switch *sw, enum usb_role role); 48 enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw); 51 void usb_role_switch_put(struct usb_role_switch *sw); 56 void usb_role_switch_unregister(struct usb_role_switch *sw); 58 static inline int usb_role_switch_set_role(struct usb_role_switch *sw, in usb_role_switch_set_role() argument 64 static inline enum usb_role usb_role_switch_get_role(struct usb_role_switch *sw) in usb_role_switch_get_role() argument 80 static inline void usb_role_switch_put(struct usb_role_switch *sw) { } in usb_role_switch_put() argument 89 static inline void usb_role_switch_unregister(struct usb_role_switch *sw) { } in usb_role_switch_unregister() argument
|
/Linux-v5.4/arch/mips/kernel/ |
D | scall32-o32.S | 36 sw t1, PT_EPC(sp) 38 sw a3, PT_R26(sp) # save a3 for syscall restarting 70 sw t5, 16(sp) # argument #5 to ksp 71 sw t6, 20(sp) # argument #6 to ksp 72 sw t7, 24(sp) # argument #7 to ksp 73 sw t8, 28(sp) # argument #8 to ksp 103 sw t0, PT_R7(sp) # set error flag 108 sw t1, PT_R0(sp) # save it for syscall restarting 109 1: sw v0, PT_R2(sp) # result 151 sw v0, PT_R2(sp) [all …]
|