| /kernel/linux/linux-6.6/drivers/scsi/qla2xxx/ |
| D | qla_mbx.c | 80 return 1; in is_rom_cmd() 95 * mb[MAX_MAILBOX_REGISTER_COUNT] = returned mailbox data. 99 * 1 : QLA_FUNCTION_FAILED (error encountered) 161 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command() 171 !is_rom_cmd(mcp->mb[0])) || ha->flags.eeh_busy) { in qla2x00_mailbox_command() 174 mcp->mb[0]); in qla2x00_mailbox_command() 188 mcp->mb[0]); in qla2x00_mailbox_command() 198 ha->flags.purge_mbox, ha->flags.eeh_busy, mcp->mb[0]); in qla2x00_mailbox_command() 208 "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); in qla2x00_mailbox_command() 218 ha->flags.mbox_busy = 1; in qla2x00_mailbox_command() [all …]
|
| D | qla_isr.c | 108 rsp_els->entry_count = 1; in qla24xx_process_abts() 137 abts_rsp->entry_count = 1; in qla24xx_process_abts() 143 abts_rsp->d_id[1] = abts->s_id[1]; in qla24xx_process_abts() 147 abts_rsp->s_id[1] = abts->d_id[1]; in qla24xx_process_abts() 154 abts_rsp->f_ctl[1] = fctl >> 8 & 0xff; in qla24xx_process_abts() 349 uint16_t mb[8]; in qla2100_intr_handler() local 393 mb[0] = RD_MAILBOX_REG(ha, reg, 0); in qla2100_intr_handler() 394 if (mb[0] > 0x3fff && mb[0] < 0x8000) { in qla2100_intr_handler() 395 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler() 397 } else if (mb[0] > 0x7fff && mb[0] < 0xc000) { in qla2100_intr_handler() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
| D | qla_mbx.c | 80 return 1; in is_rom_cmd() 95 * mb[MAX_MAILBOX_REGISTER_COUNT] = returned mailbox data. 99 * 1 : QLA_FUNCTION_FAILED (error encountered) 161 mcp->mb[0] = MBS_LINK_DOWN_ERROR; in qla2x00_mailbox_command() 172 !is_rom_cmd(mcp->mb[0])) { in qla2x00_mailbox_command() 175 mcp->mb[0]); in qla2x00_mailbox_command() 189 mcp->mb[0]); in qla2x00_mailbox_command() 204 "Prepare to issue mbox cmd=0x%x.\n", mcp->mb[0]); in qla2x00_mailbox_command() 214 ha->flags.mbox_busy = 1; in qla2x00_mailbox_command() 224 iptr = mcp->mb; in qla2x00_mailbox_command() [all …]
|
| D | qla_isr.c | 91 rsp_els->entry_count = 1; in qla24xx_process_abts() 120 abts_rsp->entry_count = 1; in qla24xx_process_abts() 126 abts_rsp->d_id[1] = abts->s_id[1]; in qla24xx_process_abts() 130 abts_rsp->s_id[1] = abts->d_id[1]; in qla24xx_process_abts() 137 abts_rsp->f_ctl[1] = fctl >> 8 & 0xff; in qla24xx_process_abts() 189 uint16_t mb[8]; in qla2100_intr_handler() local 233 mb[0] = RD_MAILBOX_REG(ha, reg, 0); in qla2100_intr_handler() 234 if (mb[0] > 0x3fff && mb[0] < 0x8000) { in qla2100_intr_handler() 235 qla2x00_mbx_completion(vha, mb[0]); in qla2100_intr_handler() 237 } else if (mb[0] > 0x7fff && mb[0] < 0xc000) { in qla2100_intr_handler() [all …]
|
| /kernel/linux/linux-6.6/drivers/scsi/lpfc/ |
| D | lpfc_mbox.c | 89 * @locked: value that indicates if the hbalock is held (1) or not (0). 136 MAILBOX_t *mb; in lpfc_dump_static_vport() local 140 mb = &pmb->u.mb; in lpfc_dump_static_vport() 144 mb->mbxCommand = MBX_DUMP_MEMORY; in lpfc_dump_static_vport() 145 mb->un.varDmp.type = DMP_NV_PARAMS; in lpfc_dump_static_vport() 146 mb->un.varDmp.entry_index = offset; in lpfc_dump_static_vport() 147 mb->un.varDmp.region_id = DMP_REGION_VPORT; in lpfc_dump_static_vport() 148 mb->mbxOwner = OWN_HOST; in lpfc_dump_static_vport() 152 mb->un.varDmp.cv = 1; in lpfc_dump_static_vport() 153 mb->un.varDmp.word_cnt = DMP_RSP_SIZE/sizeof(uint32_t); in lpfc_dump_static_vport() [all …]
|
| /kernel/linux/linux-6.6/drivers/mailbox/ |
| D | rockchip-mailbox.c | 38 struct rockchip_mbox *mb; member 54 struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); in rockchip_mbox_send_data() local 56 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_send_data() 61 if (msg->rx_size > mb->buf_size) { in rockchip_mbox_send_data() 62 dev_err(mb->mbox.dev, "Transmit size over buf size(%d)\n", in rockchip_mbox_send_data() 63 mb->buf_size); in rockchip_mbox_send_data() 67 dev_dbg(mb->mbox.dev, "Chan[%d]: A2B message, cmd 0x%08x\n", in rockchip_mbox_send_data() 70 mb->chans[chans->idx].msg = msg; in rockchip_mbox_send_data() 72 writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); in rockchip_mbox_send_data() 73 writel_relaxed(msg->rx_size, mb->mbox_base + in rockchip_mbox_send_data() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
| D | lpfc_mbox.c | 62 MAILBOX_t *mb; in lpfc_dump_static_vport() local 65 mb = &pmb->u.mb; in lpfc_dump_static_vport() 69 mb->mbxCommand = MBX_DUMP_MEMORY; in lpfc_dump_static_vport() 70 mb->un.varDmp.type = DMP_NV_PARAMS; in lpfc_dump_static_vport() 71 mb->un.varDmp.entry_index = offset; in lpfc_dump_static_vport() 72 mb->un.varDmp.region_id = DMP_REGION_VPORT; in lpfc_dump_static_vport() 73 mb->mbxOwner = OWN_HOST; in lpfc_dump_static_vport() 77 mb->un.varDmp.cv = 1; in lpfc_dump_static_vport() 78 mb->un.varDmp.word_cnt = DMP_RSP_SIZE/sizeof(uint32_t); in lpfc_dump_static_vport() 92 return 1; in lpfc_dump_static_vport() [all …]
|
| /kernel/linux/linux-6.6/drivers/power/supply/ |
| D | ipaq_micro_battery.c | 51 struct micro_battery *mb = container_of(work, in micro_battery_work() local 61 ipaq_micro_tx_msg_sync(mb->micro, &msg_battery); in micro_battery_work() 69 * byte 1: chemistry in micro_battery_work() 75 mb->ac = msg_battery.rx_data[0]; in micro_battery_work() 76 mb->chemistry = msg_battery.rx_data[1]; in micro_battery_work() 77 mb->voltage = ((((unsigned short)msg_battery.rx_data[3] << 8) + in micro_battery_work() 79 mb->flag = msg_battery.rx_data[4]; in micro_battery_work() 85 ipaq_micro_tx_msg_sync(mb->micro, &msg_sensor); in micro_battery_work() 86 mb->temperature = msg_sensor.rx_data[1] << 8 | msg_sensor.rx_data[0]; in micro_battery_work() 88 queue_delayed_work(mb->wq, &mb->update, msecs_to_jiffies(BATT_PERIOD)); in micro_battery_work() [all …]
|
| /kernel/linux/linux-5.10/drivers/power/supply/ |
| D | ipaq_micro_battery.c | 51 struct micro_battery *mb = container_of(work, in micro_battery_work() local 61 ipaq_micro_tx_msg_sync(mb->micro, &msg_battery); in micro_battery_work() 69 * byte 1: chemistry in micro_battery_work() 75 mb->ac = msg_battery.rx_data[0]; in micro_battery_work() 76 mb->chemistry = msg_battery.rx_data[1]; in micro_battery_work() 77 mb->voltage = ((((unsigned short)msg_battery.rx_data[3] << 8) + in micro_battery_work() 79 mb->flag = msg_battery.rx_data[4]; in micro_battery_work() 85 ipaq_micro_tx_msg_sync(mb->micro, &msg_sensor); in micro_battery_work() 86 mb->temperature = msg_sensor.rx_data[1] << 8 | msg_sensor.rx_data[0]; in micro_battery_work() 88 queue_delayed_work(mb->wq, &mb->update, msecs_to_jiffies(BATT_PERIOD)); in micro_battery_work() [all …]
|
| /kernel/linux/linux-5.10/drivers/mailbox/ |
| D | rockchip-mailbox.c | 38 struct rockchip_mbox *mb; member 54 struct rockchip_mbox *mb = dev_get_drvdata(chan->mbox->dev); in rockchip_mbox_send_data() local 56 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_send_data() 61 if (msg->rx_size > mb->buf_size) { in rockchip_mbox_send_data() 62 dev_err(mb->mbox.dev, "Transmit size over buf size(%d)\n", in rockchip_mbox_send_data() 63 mb->buf_size); in rockchip_mbox_send_data() 67 dev_dbg(mb->mbox.dev, "Chan[%d]: A2B message, cmd 0x%08x\n", in rockchip_mbox_send_data() 70 mb->chans[chans->idx].msg = msg; in rockchip_mbox_send_data() 72 writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); in rockchip_mbox_send_data() 73 writel_relaxed(msg->rx_size, mb->mbox_base + in rockchip_mbox_send_data() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvif/ |
| D | push.h | 77 __builtin_choose_expr(__builtin_constant_p(a), (a), 1), b \ 108 PUSH_DATA_(X, _pp, X##m, i0, i1, *_dd++, 1, "+0x%x", 0); \ 110 PUSH_DATA_(X, _pp, X##m, i0, i1, *_dd++, 1, "+0x%x", _i); \ 128 PUSH_##f(X, (p), X##mA, 1, o, (dA), ds, ""); \ 130 #define PUSH_2(X,f,ds,n,o,p,s,mB,dB,mA,dA,a...) do { \ argument 131 PUSH_ASSERT((mB) - (mA) == (1?PUSH_##o##_INC), "mthd1"); \ 132 PUSH_1(X, DATA_, 1, (ds) + (n), o, (p), s, X##mA, (dA), ##a); \ 133 PUSH_##f(X, (p), X##mB, 0, o, (dB), ds, ""); \ 135 #define PUSH_3(X,f,ds,n,o,p,s,mB,dB,mA,dA,a...) do { \ argument 136 PUSH_ASSERT((mB) - (mA) == (0?PUSH_##o##_INC), "mthd2"); \ [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvif/ |
| D | push.h | 77 __builtin_choose_expr(__builtin_constant_p(a), (a), 1), b \ 108 PUSH_DATA_(X, _pp, X##m, i0, i1, *_dd++, 1, "+0x%x", 0); \ 110 PUSH_DATA_(X, _pp, X##m, i0, i1, *_dd++, 1, "+0x%x", _i); \ 128 PUSH_##f(X, (p), X##mA, 1, o, (dA), ds, ""); \ 130 #define PUSH_2(X,f,ds,n,o,p,s,mB,dB,mA,dA,a...) do { \ argument 131 PUSH_ASSERT((mB) - (mA) == (1?PUSH_##o##_INC), "mthd1"); \ 132 PUSH_1(X, DATA_, 1, (ds) + (n), o, (p), s, X##mA, (dA), ##a); \ 133 PUSH_##f(X, (p), X##mB, 0, o, (dB), ds, ""); \ 135 #define PUSH_3(X,f,ds,n,o,p,s,mB,dB,mA,dA,a...) do { \ argument 136 PUSH_ASSERT((mB) - (mA) == (0?PUSH_##o##_INC), "mthd2"); \ [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
| D | charge_reserved_hugetlb.sh | 16 if [[ "$1" == "-cgroup-v2" ]]; then 17 cgroup2=1 25 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}') 29 do_umount=1 37 do_umount=1 68 local expected="$1" 75 exit 1 82 mb=$(($kb / 1024)) 83 echo $mb 86 MB=$(get_machine_hugepage_size) [all …]
|
| D | hugetlb_reparenting_test.sh | 13 if [[ "$1" == "-cgroup-v2" ]]; then 14 cgroup2=1 20 CGROUP_ROOT=$(mount -t cgroup2 | head -1 | awk '{print $3}') 24 do_umount=1 32 do_umount=1 40 mb=$(($kb / 1024)) 41 echo $mb 44 MB=$(get_machine_hugepage_size) 60 local expected_a="$1" 75 echo actual a = $((${actual_a%% *} / 1024 / 1024)) MB [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
| D | charge_reserved_hugetlb.sh | 19 if [[ "$1" == "-cgroup-v2" ]]; then 20 cgroup2=1 28 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}') 32 do_umount=1 40 do_umount=1 71 local expected="$1" 78 exit 1 85 mb=$(($kb / 1024)) 86 echo $mb 89 MB=$(get_machine_hugepage_size) [all …]
|
| /kernel/linux/linux-6.6/Documentation/driver-api/cxl/ |
| D | memory-devices.rst | 33 given range only decodes to 1 one Host Bridge, but that Host Bridge may in turn 50 "host":"cxl_host_bridge.1", 54 "host":"cxl_switch_uport.1", 61 "pmem_size":"256.00 MiB (268.44 MB)", 62 "ram_size":"256.00 MiB (268.44 MB)", 64 "numa_node":1, 65 "host":"cxl_mem.1" 73 "pmem_size":"256.00 MiB (268.44 MB)", 74 "ram_size":"256.00 MiB (268.44 MB)", 76 "numa_node":1, [all …]
|
| /kernel/linux/linux-5.10/tools/memory-model/ |
| D | linux-kernel.def | 17 smp_store_mb(X,V) { __store{once}(X,V); __fence{mb}; } 20 smp_mb() { __fence{mb}; } 30 xchg(X,V) __xchg{mb}(X,V) 34 cmpxchg(X,V,W) __cmpxchg{mb}(X,V,W) 65 atomic_inc(X) { __atomic_op(X,+,1); } 66 atomic_dec(X) { __atomic_op(X,-,1); } 68 atomic_add_return(V,X) __atomic_op_return{mb}(X,+,V) 72 atomic_fetch_add(V,X) __atomic_fetch_op{mb}(X,+,V) 77 atomic_inc_return(X) __atomic_op_return{mb}(X,+,1) 78 atomic_inc_return_relaxed(X) __atomic_op_return{once}(X,+,1) [all …]
|
| /kernel/linux/linux-5.10/fs/btrfs/tests/ |
| D | free-space-tests.c | 41 return -1; in test_extents() 71 return -1; in test_extents() 76 return -1; in test_extents() 81 return -1; in test_extents() 97 ret = test_add_free_space_entry(cache, 0, SZ_4M, 1); in test_bitmaps() 111 return -1; in test_bitmaps() 114 ret = test_add_free_space_entry(cache, 0, SZ_4M, 1); in test_bitmaps() 134 SZ_4M, 1); in test_bitmaps() 149 return -1; in test_bitmaps() 171 ret = test_add_free_space_entry(cache, SZ_4M, SZ_1M, 1); in test_bitmaps_and_extents() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/pci/cx18/ |
| D | cx18-mailbox.c | 22 #define API_FAST (1 << 2) /* Short timeout */ 23 #define API_SLOW (1 << 3) /* Additional 300ms timeout */ 91 /* Call with buf of n*11+1 bytes */ 105 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument 107 char argstr[MAX_MB_ARGUMENTS*11+1]; in dump_mb() 113 name, mb->request, mb->ack, mb->cmd, mb->error, in dump_mb() 114 u32arr2hex(mb->args, MAX_MB_ARGUMENTS, argstr)); in dump_mb() 187 dispatch = 1; in cx18_mdl_send_to_vb2() 234 struct cx18_mailbox *mb; in epu_dma_done() local 240 mb = &order->mb; in epu_dma_done() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/pci/cx18/ |
| D | cx18-mailbox.c | 22 #define API_FAST (1 << 2) /* Short timeout */ 23 #define API_SLOW (1 << 3) /* Additional 300ms timeout */ 91 /* Call with buf of n*11+1 bytes */ 105 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument 107 char argstr[MAX_MB_ARGUMENTS*11+1]; in dump_mb() 113 name, mb->request, mb->ack, mb->cmd, mb->error, in dump_mb() 114 u32arr2hex(mb->args, MAX_MB_ARGUMENTS, argstr)); in dump_mb() 186 dispatch = 1; in cx18_mdl_send_to_videobuf() 233 struct cx18_mailbox *mb; in epu_dma_done() local 239 mb = &order->mb; in epu_dma_done() [all …]
|
| /kernel/linux/linux-6.6/tools/memory-model/ |
| D | linux-kernel.def | 17 smp_store_mb(X,V) { __store{once}(X,V); __fence{mb}; } 20 smp_mb() { __fence{mb}; } 31 xchg(X,V) __xchg{mb}(X,V) 35 cmpxchg(X,V,W) __cmpxchg{mb}(X,V,W) 68 atomic_inc(X) { __atomic_op(X,+,1); } 69 atomic_dec(X) { __atomic_op(X,-,1); } 71 atomic_add_return(V,X) __atomic_op_return{mb}(X,+,V) 75 atomic_fetch_add(V,X) __atomic_fetch_op{mb}(X,+,V) 80 atomic_inc_return(X) __atomic_op_return{mb}(X,+,1) 81 atomic_inc_return_relaxed(X) __atomic_op_return{once}(X,+,1) [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/pci/ |
| D | v3-v360epc-pci.txt | 11 second the configuration area register space, 16MB 18 each be exactly 256MB (0x10000000) in size. 22 be aligned to a 1MB boundary, and may be 1MB, 2MB, 4MB, 8MB, 16MB, 32MB, 23 64MB, 128MB, 256MB, 512MB, 1GB or 2GB in size. The memory should be marked 35 #interrupt-cells = <1>; 46 0x40000000 0 0x10000000 /* 256 MiB @ LB 40000000 1:1 */ 48 0x50000000 0 0x10000000>; /* 256 MiB @ LB 50000000 1:1 */ 50 0x20000000 0 0x20000000 /* 512 MB @ LB 20000000 1:1 */ 52 0x80000000 0 0x40000000>; /* 1GB @ LB 80000000 */ 56 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */ [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/pci/ |
| D | v3-v360epc-pci.txt | 11 second the configuration area register space, 16MB 18 each be exactly 256MB (0x10000000) in size. 22 be aligned to a 1MB boundary, and may be 1MB, 2MB, 4MB, 8MB, 16MB, 32MB, 23 64MB, 128MB, 256MB, 512MB, 1GB or 2GB in size. The memory should be marked 35 #interrupt-cells = <1>; 46 0x40000000 0 0x10000000 /* 256 MiB @ LB 40000000 1:1 */ 48 0x50000000 0 0x10000000>; /* 256 MiB @ LB 50000000 1:1 */ 50 0x20000000 0 0x20000000 /* 512 MB @ LB 20000000 1:1 */ 52 0x80000000 0 0x40000000>; /* 1GB @ LB 80000000 */ 56 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */ [all …]
|
| /kernel/linux/linux-5.10/arch/alpha/kernel/ |
| D | core_apecs.c | 31 * NOTE: Herein lie back-to-back mb instructions. They are magic. 59 * 3 3|3 3 2 2|2 2 2 2|2 2 2 2|1 1 1 1|1 1 1 1|1 1 60 * 3 2|1 0 9 8|7 6 5 4|3 2 1 0|9 8 7 6|5 4 3 2|1 0 9 8|7 6 5 4|3 2 1 0 69 * Type 1: 71 * 3 3|3 3 2 2|2 2 2 2|2 2 2 2|1 1 1 1|1 1 1 1|1 1 72 * 3 2|1 0 9 8|7 6 5 4|3 2 1 0|9 8 7 6|5 4 3 2|1 0 9 8|7 6 5 4|3 2 1 0 74 * | | | | | | | | | | |B|B|B|B|B|B|B|B|D|D|D|D|D|F|F|F|R|R|R|R|R|R|0|1| 109 DBGC(("mk_conf_addr: device (%d) > 20, returning -1\n", in mk_conf_addr() 111 return -1; in mk_conf_addr() 117 /* type 1 configuration cycle: */ in mk_conf_addr() [all …]
|
| /kernel/linux/linux-6.6/arch/alpha/kernel/ |
| D | core_apecs.c | 31 * NOTE: Herein lie back-to-back mb instructions. They are magic. 59 * 3 3|3 3 2 2|2 2 2 2|2 2 2 2|1 1 1 1|1 1 1 1|1 1 60 * 3 2|1 0 9 8|7 6 5 4|3 2 1 0|9 8 7 6|5 4 3 2|1 0 9 8|7 6 5 4|3 2 1 0 69 * Type 1: 71 * 3 3|3 3 2 2|2 2 2 2|2 2 2 2|1 1 1 1|1 1 1 1|1 1 72 * 3 2|1 0 9 8|7 6 5 4|3 2 1 0|9 8 7 6|5 4 3 2|1 0 9 8|7 6 5 4|3 2 1 0 74 * | | | | | | | | | | |B|B|B|B|B|B|B|B|D|D|D|D|D|F|F|F|R|R|R|R|R|R|0|1| 109 DBGC(("mk_conf_addr: device (%d) > 20, returning -1\n", in mk_conf_addr() 111 return -1; in mk_conf_addr() 117 /* type 1 configuration cycle: */ in mk_conf_addr() [all …]
|